pcb_calculator: code rework: rename "murC" member by "m_murC"
This commit is contained in:
parent
77477e4f10
commit
da0f956ca5
|
@ -163,7 +163,7 @@ void C_MICROSTRIP::compute_single_line()
|
|||
//aux_ms->t = t;
|
||||
aux_ms->ht = 1e12; /* arbitrarily high */
|
||||
aux_ms->m_freq = m_freq;
|
||||
aux_ms->murC = murC;
|
||||
aux_ms->m_murC = m_murC;
|
||||
aux_ms->microstrip_Z0();
|
||||
aux_ms->dispersion();
|
||||
}
|
||||
|
@ -836,7 +836,7 @@ void C_MICROSTRIP::calc()
|
|||
void C_MICROSTRIP::get_c_microstrip_sub()
|
||||
{
|
||||
er = getProperty( EPSILONR_PRM );
|
||||
murC = getProperty( MURC_PRM );
|
||||
m_murC = getProperty( MURC_PRM );
|
||||
h = getProperty( H_PRM );
|
||||
ht = getProperty( H_T_PRM );
|
||||
t = getProperty( T_PRM );
|
||||
|
|
|
@ -63,7 +63,7 @@ void COAX::get_coax_sub()
|
|||
{
|
||||
er = getProperty( EPSILONR_PRM );
|
||||
mur = getProperty( MUR_PRM );
|
||||
murC = getProperty( MURC_PRM );
|
||||
m_murC = getProperty( MURC_PRM );
|
||||
tand = getProperty( TAND_PRM );
|
||||
m_sigma = 1.0 / getProperty( RHO_PRM );
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ double COAX::alphac_coax()
|
|||
{
|
||||
double ac, Rs;
|
||||
|
||||
Rs = sqrt( M_PI * m_freq * murC * MU0 / m_sigma );
|
||||
Rs = sqrt( M_PI * m_freq * m_murC * MU0 / m_sigma );
|
||||
ac = sqrt( er ) * ( ( (1 / din) + (1 / dout) ) / log( dout / din ) ) * (Rs / ZF0);
|
||||
ac = ac * 20.0 / log( 10.0 );
|
||||
return ac;
|
||||
|
|
|
@ -69,7 +69,7 @@ void COPLANAR::getProperties()
|
|||
t = getProperty( T_PRM );
|
||||
|
||||
er = getProperty( EPSILONR_PRM );
|
||||
murC = getProperty( MURC_PRM );
|
||||
m_murC = getProperty( MURC_PRM );
|
||||
tand = getProperty( TAND_PRM );
|
||||
m_sigma = 1.0 / getProperty( RHO_PRM );
|
||||
Z0 = getProperty( Z0_PRM );
|
||||
|
|
|
@ -467,7 +467,7 @@ void MICROSTRIP::get_microstrip_sub()
|
|||
ht = getProperty( H_T_PRM );
|
||||
t = getProperty( T_PRM );
|
||||
m_sigma = 1.0 / getProperty( RHO_PRM );
|
||||
murC = getProperty( MURC_PRM );
|
||||
m_murC = getProperty( MURC_PRM );
|
||||
tand = getProperty( TAND_PRM );
|
||||
rough = getProperty( ROUGH_PRM );
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ double RECTWAVEGUIDE::alphac()
|
|||
double ac;
|
||||
short m, n, mmax, nmax;
|
||||
|
||||
Rs = sqrt( M_PI * m_freq * murC * MU0 / m_sigma );
|
||||
Rs = sqrt( M_PI * m_freq * m_murC * MU0 / m_sigma );
|
||||
ac = 0.0;
|
||||
mmax = (int) floor( m_freq / fc( 1, 0 ) );
|
||||
nmax = mmax;
|
||||
|
@ -189,7 +189,7 @@ void RECTWAVEGUIDE::get_rectwaveguide_sub()
|
|||
{
|
||||
er = getProperty( EPSILONR_PRM );
|
||||
mur = getProperty( MUR_PRM );
|
||||
murC = getProperty( MURC_PRM );
|
||||
m_murC = getProperty( MURC_PRM );
|
||||
m_sigma = 1.0 / getProperty( RHO_PRM );
|
||||
tand = getProperty( TAND_PRM );
|
||||
tanm = getProperty( TANM_PRM );
|
||||
|
|
|
@ -60,7 +60,7 @@ void STRIPLINE::getProperties()
|
|||
t = getProperty( T_PRM );
|
||||
|
||||
er = getProperty( EPSILONR_PRM );
|
||||
murC = getProperty( MURC_PRM );
|
||||
m_murC = getProperty( MURC_PRM );
|
||||
tand = getProperty( TAND_PRM );
|
||||
m_sigma = 1.0 / getProperty( RHO_PRM );
|
||||
Z0 = getProperty( Z0_PRM );
|
||||
|
|
|
@ -61,7 +61,7 @@ bool IsSelectedInDialog( enum PRMS_ID aPrmId );
|
|||
/* Constructor creates a transmission line instance. */
|
||||
TRANSLINE::TRANSLINE()
|
||||
{
|
||||
murC = 1.0;
|
||||
m_murC = 1.0;
|
||||
m_name = (const char*) 0;
|
||||
|
||||
// Initialize these variables mainly to avoid warnings from a static analyzer
|
||||
|
@ -122,7 +122,7 @@ double TRANSLINE::getProperty( enum PRMS_ID aPrmId )
|
|||
double TRANSLINE::skin_depth()
|
||||
{
|
||||
double depth;
|
||||
depth = 1.0 / sqrt( M_PI * m_freq * murC * MU0 * m_sigma );
|
||||
depth = 1.0 / sqrt( M_PI * m_freq * m_murC * MU0 * m_sigma );
|
||||
return depth;
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ protected:
|
|||
double er; /* dielectric constant */
|
||||
double tand; /* Dielectric Loss Tangent */
|
||||
double m_sigma; // Conductivity of the metal
|
||||
double murC; /* magnetic permeability of conductor */
|
||||
double m_murC; /* magnetic permeability of conductor */
|
||||
double m_skindepth; // Skin depth
|
||||
|
||||
double skin_depth();
|
||||
|
|
|
@ -58,7 +58,7 @@ void TWISTEDPAIR::getProperties()
|
|||
len = getProperty( PHYS_LEN_PRM );
|
||||
|
||||
er = getProperty( EPSILONR_PRM );
|
||||
murC = getProperty( MURC_PRM );
|
||||
m_murC = getProperty( MURC_PRM );
|
||||
tand = getProperty( TAND_PRM );
|
||||
m_sigma = 1.0 / getProperty( RHO_PRM );
|
||||
twists = getProperty( TWISTEDPAIR_TWIST_PRM );
|
||||
|
|
Loading…
Reference in New Issue