SAR: use cell based conductivity in all cases (new default)

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
This commit is contained in:
Thorsten Liebig 2013-08-23 17:28:18 +02:00
parent 84e9e78643
commit 6c248efa3a
3 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@
ProcessFieldsSAR::ProcessFieldsSAR(Engine_Interface_Base* eng_if) : ProcessFieldsFD(eng_if)
{
m_UseCellKappa = false;
m_UseCellKappa = true;
m_SAR_method = "Simple";
}

View File

@ -40,7 +40,7 @@ public:
virtual void SetOptResolution(double optRes, int dir=-1);
//! Set to true for using the conductivity found at the center of a cell, instead of default E*J
//! Set to true for using the conductivity found at the center of a cell, or false for E*J instead
virtual void SetUseCellConductivity(bool val) {m_UseCellKappa=val;}
virtual void SetSARAveragingMethod(string method) {m_SAR_method=method;}

View File

@ -441,6 +441,8 @@ bool openEMS::SetupProcessing()
string method = db->GetAttributeValue("SAR_Method");
if (!method.empty())
procSAR->SetSARAveragingMethod(method);
// use (center)-cell based conductivity only
procSAR->SetUseCellConductivity(true);
}
else
cerr << "openEMS::SetupFDTD: unknown dump box type... skipping!" << endl;