⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 femitg.cpp

📁 pic 模拟程序!面向对象
💻 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 + -