dump in working dir

pull/1/head
Thorsten Liebig 2010-03-12 08:39:32 +01:00
parent 9b638b1568
commit 14c3595763
5 changed files with 28 additions and 34 deletions

View File

@ -27,18 +27,18 @@
<Excitation Type="0" Excit_X="1.000000e+00" Excit_Y="1.000000e+00" Excit_Z="0.000000e+00" /> <Excitation Type="0" Excit_X="1.000000e+00" Excit_Y="1.000000e+00" Excit_Z="0.000000e+00" />
<Weight X="term:x/pow(rho,2)" Y="term:y/pow(rho,2)" Z="1.000000e+00" /> <Weight X="term:x/pow(rho,2)" Y="term:y/pow(rho,2)" Z="1.000000e+00" />
</Electrode> </Electrode>
<DumpBox ID="2" Name="tmp/Et_" GlobalSetting="1" DumpType="0" DumpMode="2"> <DumpBox ID="2" Name="Et_" GlobalSetting="1" DumpType="0" DumpMode="2">
<FillColor R="233" G="94" B="212" a="255" /> <FillColor R="233" G="94" B="212" a="255" />
<EdgeColor R="233" G="94" B="212" a="255" /> <EdgeColor R="233" G="94" B="212" a="255" />
<ScalarDump DumpPhi="1" DumpDivE="0" DumpDivD="0" DumpDivP="0" DumpFieldW="0" DumpChargeW="0" /> <ScalarDump DumpPhi="1" DumpDivE="0" DumpDivD="0" DumpDivP="0" DumpFieldW="0" DumpChargeW="0" />
<VectorDump DumpEField="0" DumpDField="0" DumpPField="0" /> <VectorDump DumpEField="0" DumpDField="0" DumpPField="0" />
<SubGridDump SubGridDump="0" SimpleDump="0" SubGridLevel="-1" /> <SubGridDump SubGridDump="0" SimpleDump="0" SubGridLevel="-1" />
</DumpBox> </DumpBox>
<ProbeBox ID="3" Name="tmp/u1" Number="0" Type="0"> <ProbeBox ID="3" Name="u1" Number="0" Type="0">
<FillColor R="171" G="178" B="205" a="255" /> <FillColor R="171" G="178" B="205" a="255" />
<EdgeColor R="171" G="178" B="205" a="255" /> <EdgeColor R="171" G="178" B="205" a="255" />
</ProbeBox> </ProbeBox>
<ProbeBox ID="4" Name="tmp/i1" Number="0" Type="1"> <ProbeBox ID="4" Name="i1" Number="0" Type="1">
<FillColor R="198" G="155" B="180" a="255" /> <FillColor R="198" G="155" B="180" a="255" />
<EdgeColor R="198" G="155" B="180" a="255" /> <EdgeColor R="198" G="155" B="180" a="255" />
</ProbeBox> </ProbeBox>

View File

@ -166,7 +166,7 @@ void BuildPlaneWave(const char* filename)
//E-field dump //E-field dump
CSPropDumpBox* Edump = new CSPropDumpBox(CSX.GetParameterSet()); CSPropDumpBox* Edump = new CSPropDumpBox(CSX.GetParameterSet());
Edump->SetDumpType(0); Edump->SetDumpType(0);
Edump->SetName("tmp/Et_"); Edump->SetName("Et_");
CSX.AddProperty(Edump); CSX.AddProperty(Edump);
box = new CSPrimBox(CSX.GetParameterSet(),Edump); box = new CSPrimBox(CSX.GetParameterSet(),Edump);
box->SetCoord(0,width/-3.0);box->SetCoord(1,width/3.0); box->SetCoord(0,width/-3.0);box->SetCoord(1,width/3.0);
@ -177,7 +177,7 @@ void BuildPlaneWave(const char* filename)
//H-field dump //H-field dump
CSPropDumpBox* Hdump = new CSPropDumpBox(CSX.GetParameterSet()); CSPropDumpBox* Hdump = new CSPropDumpBox(CSX.GetParameterSet());
Hdump->SetDumpType(1); Hdump->SetDumpType(1);
Hdump->SetName("tmp/Ht_"); Hdump->SetName("Ht_");
CSX.AddProperty(Hdump); CSX.AddProperty(Hdump);
box = new CSPrimBox(CSX.GetParameterSet(),Hdump); box = new CSPrimBox(CSX.GetParameterSet(),Hdump);
box->SetCoord(0,width/-3.0);box->SetCoord(1,width/3.0); box->SetCoord(0,width/-3.0);box->SetCoord(1,width/3.0);
@ -285,10 +285,10 @@ void BuildMSL(const char* filename)
//MSL //MSL
CSProperties* MSL = NULL; CSProperties* MSL = NULL;
CSPropMaterial* MSL_mat = new CSPropMaterial(CSX.GetParameterSet()); // CSPropMaterial* MSL_mat = new CSPropMaterial(CSX.GetParameterSet());
MSL_mat->SetKappa(56e6); // MSL_mat->SetKappa(56e6);
MSL = MSL_mat; // MSL = MSL_mat;
// MSL = new CSPropMetal(CSX.GetParameterSet()); MSL = new CSPropMetal(CSX.GetParameterSet());
CSX.AddProperty(MSL); CSX.AddProperty(MSL);
box = new CSPrimBox(CSX.GetParameterSet(),MSL); box = new CSPrimBox(CSX.GetParameterSet(),MSL);
@ -314,7 +314,7 @@ void BuildMSL(const char* filename)
// //E-field dump xz // //E-field dump xz
// Edump = new CSPropDumpBox(CSX.GetParameterSet()); // Edump = new CSPropDumpBox(CSX.GetParameterSet());
// Edump->SetDumpType(0); // Edump->SetDumpType(0);
// Edump->SetName("tmp/Et_xz_"); // Edump->SetName("Et_xz_");
// CSX.AddProperty(Edump); // CSX.AddProperty(Edump);
// box = new CSPrimBox(CSX.GetParameterSet(),Edump); // box = new CSPrimBox(CSX.GetParameterSet(),Edump);
// box->SetCoord(0,width/-2.0);box->SetCoord(1,width/2.0); // box->SetCoord(0,width/-2.0);box->SetCoord(1,width/2.0);
@ -325,7 +325,7 @@ void BuildMSL(const char* filename)
// //E-field dump xy // //E-field dump xy
// Edump = new CSPropDumpBox(CSX.GetParameterSet()); // Edump = new CSPropDumpBox(CSX.GetParameterSet());
// Edump->SetDumpType(0); // Edump->SetDumpType(0);
// Edump->SetName("tmp/Et_xy_"); // Edump->SetName("Et_xy_");
// CSX.AddProperty(Edump); // CSX.AddProperty(Edump);
// box = new CSPrimBox(CSX.GetParameterSet(),Edump); // box = new CSPrimBox(CSX.GetParameterSet(),Edump);
// box->SetCoord(0,width/-2.0);box->SetCoord(1,width/2.0); // box->SetCoord(0,width/-2.0);box->SetCoord(1,width/2.0);
@ -337,7 +337,7 @@ void BuildMSL(const char* filename)
Edump = new CSPropDumpBox(CSX.GetParameterSet()); Edump = new CSPropDumpBox(CSX.GetParameterSet());
Edump->SetDumpType(0); Edump->SetDumpType(0);
Edump->SetDumpMode(2); //cell interpolated dump Edump->SetDumpMode(2); //cell interpolated dump
Edump->SetName("tmp/Et_"); Edump->SetName("Et_");
CSX.AddProperty(Edump); CSX.AddProperty(Edump);
box = new CSPrimBox(CSX.GetParameterSet(),Edump); box = new CSPrimBox(CSX.GetParameterSet(),Edump);
box->SetCoord(0,MSL_width*-1.5);box->SetCoord(1,MSL_width*1.5); box->SetCoord(0,MSL_width*-1.5);box->SetCoord(1,MSL_width*1.5);
@ -348,7 +348,7 @@ void BuildMSL(const char* filename)
//voltage calc //voltage calc
CSPropProbeBox* volt = new CSPropProbeBox(CSX.GetParameterSet()); CSPropProbeBox* volt = new CSPropProbeBox(CSX.GetParameterSet());
volt->SetProbeType(0); volt->SetProbeType(0);
volt->SetName("tmp/u1"); volt->SetName("u1");
CSX.AddProperty(volt); CSX.AddProperty(volt);
box = new CSPrimBox(CSX.GetParameterSet(),volt); box = new CSPrimBox(CSX.GetParameterSet(),volt);
box->SetCoord(0,0.0);box->SetCoord(1,0.0); box->SetCoord(0,0.0);box->SetCoord(1,0.0);
@ -359,7 +359,7 @@ void BuildMSL(const char* filename)
//current calc //current calc
CSPropProbeBox* curr = new CSPropProbeBox(CSX.GetParameterSet()); CSPropProbeBox* curr = new CSPropProbeBox(CSX.GetParameterSet());
curr->SetProbeType(1); curr->SetProbeType(1);
curr->SetName("tmp/i1"); curr->SetName("i1");
CSX.AddProperty(curr); CSX.AddProperty(curr);
box = new CSPrimBox(CSX.GetParameterSet(),curr); box = new CSPrimBox(CSX.GetParameterSet(),curr);
box->SetCoord(0,MSL_width*-1.5);box->SetCoord(1,MSL_width*1.5); box->SetCoord(0,MSL_width*-1.5);box->SetCoord(1,MSL_width*1.5);
@ -479,7 +479,7 @@ void BuildCoaxial_Cartesian(const char* filename)
CSPropDumpBox* Edump = new CSPropDumpBox(CSX.GetParameterSet()); CSPropDumpBox* Edump = new CSPropDumpBox(CSX.GetParameterSet());
Edump->SetDumpType(0); Edump->SetDumpType(0);
Edump->SetDumpMode(2); Edump->SetDumpMode(2);
Edump->SetName("tmp/Et_"); Edump->SetName("Et_");
CSX.AddProperty(Edump); CSX.AddProperty(Edump);
box = new CSPrimBox(CSX.GetParameterSet(),Edump); box = new CSPrimBox(CSX.GetParameterSet(),Edump);
box->SetCoord(0,-1*rad[1]);box->SetCoord(1,rad[1]); box->SetCoord(0,-1*rad[1]);box->SetCoord(1,rad[1]);
@ -490,7 +490,7 @@ void BuildCoaxial_Cartesian(const char* filename)
//voltage calc //voltage calc
CSPropProbeBox* volt = new CSPropProbeBox(CSX.GetParameterSet()); CSPropProbeBox* volt = new CSPropProbeBox(CSX.GetParameterSet());
volt->SetProbeType(0); volt->SetProbeType(0);
volt->SetName("tmp/u1"); volt->SetName("u1");
CSX.AddProperty(volt); CSX.AddProperty(volt);
box = new CSPrimBox(CSX.GetParameterSet(),volt); box = new CSPrimBox(CSX.GetParameterSet(),volt);
box->SetCoord(0,rad[0]);box->SetCoord(1,rad[1]); box->SetCoord(0,rad[0]);box->SetCoord(1,rad[1]);
@ -501,7 +501,7 @@ void BuildCoaxial_Cartesian(const char* filename)
//current calc //current calc
CSPropProbeBox* curr = new CSPropProbeBox(CSX.GetParameterSet()); CSPropProbeBox* curr = new CSPropProbeBox(CSX.GetParameterSet());
curr->SetProbeType(1); curr->SetProbeType(1);
curr->SetName("tmp/i1"); curr->SetName("i1");
CSX.AddProperty(curr); CSX.AddProperty(curr);
box = new CSPrimBox(CSX.GetParameterSet(),curr); box = new CSPrimBox(CSX.GetParameterSet(),curr);
box->SetCoord(0,-1.5*rad[0]);box->SetCoord(1,1.5*rad[0]); box->SetCoord(0,-1.5*rad[0]);box->SetCoord(1,1.5*rad[0]);

View File

@ -21,34 +21,28 @@
<WeightY Epsilon="1.000000e+00" Mue="1.000000e+00" Kappa="term:pow(abs(z)-800,4)" Sigma="term:pow(abs(z)-800,4)" /> <WeightY Epsilon="1.000000e+00" Mue="1.000000e+00" Kappa="term:pow(abs(z)-800,4)" Sigma="term:pow(abs(z)-800,4)" />
<WeightZ Epsilon="1.000000e+00" Mue="1.000000e+00" Kappa="term:pow(abs(z)-800,4)" Sigma="term:pow(abs(z)-800,4)" /> <WeightZ Epsilon="1.000000e+00" Mue="1.000000e+00" Kappa="term:pow(abs(z)-800,4)" Sigma="term:pow(abs(z)-800,4)" />
</Material> </Material>
<Material ID="1" Name="" Isotropy="1"> <Metal ID="1" Name="">
<FillColor R="118" G="90" B="46" a="255" /> <FillColor R="118" G="90" B="46" a="255" />
<EdgeColor R="118" G="90" B="46" a="255" /> <EdgeColor R="118" G="90" B="46" a="255" />
<Property Epsilon="1.000000e+00" Mue="1.000000e+00" Kappa="5.600000e+07" Sigma="0.000000e+00" /> </Metal>
<PropertyY Epsilon="1.000000e+00" Mue="1.000000e+00" Kappa="0.000000e+00" Sigma="0.000000e+00" />
<PropertyZ Epsilon="1.000000e+00" Mue="1.000000e+00" Kappa="0.000000e+00" Sigma="0.000000e+00" />
<WeightX Epsilon="1.000000e+00" Mue="1.000000e+00" Kappa="1.000000e+00" Sigma="1.000000e+00" />
<WeightY Epsilon="1.000000e+00" Mue="1.000000e+00" Kappa="1.000000e+00" Sigma="1.000000e+00" />
<WeightZ Epsilon="1.000000e+00" Mue="1.000000e+00" Kappa="1.000000e+00" Sigma="1.000000e+00" />
</Material>
<Electrode ID="2" Name="" Number="0" Delay="0.000000e+00"> <Electrode ID="2" Name="" Number="0" Delay="0.000000e+00">
<FillColor R="99" G="51" B="159" a="255" /> <FillColor R="99" G="51" B="159" a="255" />
<EdgeColor R="99" G="51" B="159" a="255" /> <EdgeColor R="99" G="51" B="159" a="255" />
<Excitation Type="0" Excit_X="0.000000e+00" Excit_Y="-1.000000e+00" Excit_Z="0.000000e+00" /> <Excitation Type="0" Excit_X="0.000000e+00" Excit_Y="-1.000000e+00" Excit_Z="0.000000e+00" />
<Weight X="1.000000e+00" Y="1.000000e+00" Z="1.000000e+00" /> <Weight X="1.000000e+00" Y="1.000000e+00" Z="1.000000e+00" />
</Electrode> </Electrode>
<DumpBox ID="3" Name="tmp/Et_" GlobalSetting="1" DumpType="0" DumpMode="2"> <DumpBox ID="3" Name="Et_" GlobalSetting="1" DumpType="0" DumpMode="2">
<FillColor R="201" G="154" B="102" a="255" /> <FillColor R="201" G="154" B="102" a="255" />
<EdgeColor R="201" G="154" B="102" a="255" /> <EdgeColor R="201" G="154" B="102" a="255" />
<ScalarDump DumpPhi="1" DumpDivE="0" DumpDivD="0" DumpDivP="0" DumpFieldW="0" DumpChargeW="0" /> <ScalarDump DumpPhi="1" DumpDivE="0" DumpDivD="0" DumpDivP="0" DumpFieldW="0" DumpChargeW="0" />
<VectorDump DumpEField="0" DumpDField="0" DumpPField="0" /> <VectorDump DumpEField="0" DumpDField="0" DumpPField="0" />
<SubGridDump SubGridDump="0" SimpleDump="0" SubGridLevel="-1" /> <SubGridDump SubGridDump="0" SimpleDump="0" SubGridLevel="-1" />
</DumpBox> </DumpBox>
<ProbeBox ID="4" Name="tmp/u1" Number="0" Type="0"> <ProbeBox ID="4" Name="u1" Number="0" Type="0">
<FillColor R="50" G="13" B="183" a="255" /> <FillColor R="50" G="13" B="183" a="255" />
<EdgeColor R="50" G="13" B="183" a="255" /> <EdgeColor R="50" G="13" B="183" a="255" />
</ProbeBox> </ProbeBox>
<ProbeBox ID="5" Name="tmp/i1" Number="0" Type="1"> <ProbeBox ID="5" Name="i1" Number="0" Type="1">
<FillColor R="49" G="88" B="163" a="255" /> <FillColor R="49" G="88" B="163" a="255" />
<EdgeColor R="49" G="88" B="163" a="255" /> <EdgeColor R="49" G="88" B="163" a="255" />
</ProbeBox> </ProbeBox>

View File

@ -37,14 +37,14 @@
<Excitation Type="0" Excit_X="0.000000e+00" Excit_Y="1.000000e+00" Excit_Z="0.000000e+00" /> <Excitation Type="0" Excit_X="0.000000e+00" Excit_Y="1.000000e+00" Excit_Z="0.000000e+00" />
<Weight X="1.000000e+00" Y="1.000000e+00" Z="1.000000e+00" /> <Weight X="1.000000e+00" Y="1.000000e+00" Z="1.000000e+00" />
</Electrode> </Electrode>
<DumpBox ID="3" Name="tmp/Et_" GlobalSetting="1" DumpType="0" DumpMode="0"> <DumpBox ID="3" Name="Et_" GlobalSetting="1" DumpType="0" DumpMode="0">
<FillColor R="70" G="124" B="194" a="255" /> <FillColor R="70" G="124" B="194" a="255" />
<EdgeColor R="70" G="124" B="194" a="255" /> <EdgeColor R="70" G="124" B="194" a="255" />
<ScalarDump DumpPhi="1" DumpDivE="0" DumpDivD="0" DumpDivP="0" DumpFieldW="0" DumpChargeW="0" /> <ScalarDump DumpPhi="1" DumpDivE="0" DumpDivD="0" DumpDivP="0" DumpFieldW="0" DumpChargeW="0" />
<VectorDump DumpEField="0" DumpDField="0" DumpPField="0" /> <VectorDump DumpEField="0" DumpDField="0" DumpPField="0" />
<SubGridDump SubGridDump="0" SimpleDump="0" SubGridLevel="-1" /> <SubGridDump SubGridDump="0" SimpleDump="0" SubGridLevel="-1" />
</DumpBox> </DumpBox>
<DumpBox ID="4" Name="tmp/Ht_" GlobalSetting="1" DumpType="1" DumpMode="0"> <DumpBox ID="4" Name="Ht_" GlobalSetting="1" DumpType="1" DumpMode="0">
<FillColor R="84" G="248" B="27" a="255" /> <FillColor R="84" G="248" B="27" a="255" />
<EdgeColor R="84" G="248" B="27" a="255" /> <EdgeColor R="84" G="248" B="27" a="255" />
<ScalarDump DumpPhi="1" DumpDivE="0" DumpDivD="0" DumpDivP="0" DumpFieldW="0" DumpChargeW="0" /> <ScalarDump DumpPhi="1" DumpDivE="0" DumpDivD="0" DumpDivP="0" DumpFieldW="0" DumpChargeW="0" />

View File

@ -51,16 +51,16 @@ int main(int argc, char *argv[])
#else #else
//*************** setup/read geometry ************// //*************** setup/read geometry ************//
const char* fileDP="examples/Dipol.xml"; const char* fileDP="../examples/Dipol.xml";
BuildDipol(fileDP); BuildDipol(fileDP);
const char* filePW="examples/PlaneWave.xml"; const char* filePW="../examples/PlaneWave.xml";
BuildPlaneWave(filePW); BuildPlaneWave(filePW);
const char* fileMSL="examples/MSL.xml"; const char* fileMSL="../examples/MSL.xml";
BuildMSL(fileMSL); BuildMSL(fileMSL);
const char* fileCoax="examples/Coax_Cart.xml"; const char* fileCoax="../examples/Coax_Cart.xml";
BuildCoaxial_Cartesian(fileCoax); BuildCoaxial_Cartesian(fileCoax);
const char* file=fileCoax; const char* file=fileCoax;