📄 femitg.cpp
字号:
//femitg.cpp#include "gridg.h"#include "femitg.h"#include "fieldemi.h"#include "spatialg.h"///\dad{begin}#include "spbound.h"///\dad{end}#ifdef UNIX#include "diags.h"#endif//=================== FieldEmitterParams ClassFieldEmitterParams::FieldEmitterParams(GridParams* _GP, SpatialRegionGroup* srg) : EmitterParams(_GP, srg){name = "FieldEmitter"; threshold.setNameAndDescription(ostring("threshold"), ostring("Threshold E field")); threshold.setValue(ostring("0.0")); parameterList.add(&threshold);};Boundary* FieldEmitterParams::CreateCounterPart(){ EmitterParams::CreateCounterPart();//sets up distribution and species Boundary* B = new FieldEmitter(SP.GetLineSegments(), species, np2c.getValue(), threshold.getValue()); return B;}//=================== FieldEmitterParams2 ClassFieldEmitterParams2::FieldEmitterParams2(GridParams* _GP, SpatialRegionGroup* srg) : EmitterParams(_GP, srg){ name = "FieldEmitter2"; threshold.setNameAndDescription(ostring("threshold"), ostring("Threshold E field")); threshold.setValue(ostring("0.0")); parameterList.add(&threshold); };Boundary* FieldEmitterParams2::CreateCounterPart(){ EmitterParams::CreateCounterPart();//sets up distribution and species Boundary* B = new FieldEmitter2(SP.GetLineSegments(), species, np2c.getValue(), threshold.getValue(), distribution); return B;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -