openEMS: simple interface to create a Gaussian pulse excitation

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
This commit is contained in:
Thorsten Liebig 2015-12-19 15:03:02 +01:00
parent 8ff7ed4075
commit ad02096df5
2 changed files with 7 additions and 0 deletions

View File

@ -752,6 +752,12 @@ bool openEMS::ParseFDTDSetup(std::string file)
this->SetTimeStepFactor(dhelp); this->SetTimeStepFactor(dhelp);
} }
void openEMS::SetGaussExcite(double f0, double fc)
{
this->InitExcitation();
m_Exc->SetupGaussianPulse(f0, fc);
}
Excitation* openEMS::InitExcitation() Excitation* openEMS::InitExcitation()
{ {
delete m_Exc; delete m_Exc;

View File

@ -84,6 +84,7 @@ public:
//! Check for abort conditions //! Check for abort conditions
bool CheckAbortCond(); bool CheckAbortCond();
void SetGaussExcite(double f0, double fc);
Excitation* InitExcitation(); Excitation* InitExcitation();
void SetCSX(ContinuousStructure* csx); void SetCSX(ContinuousStructure* csx);