📄 speciesg.h
字号:
/*====================================================================speciesg.hClass definitions for the SpeciesParams class. This classinstantiates a SpeciesParams object from input data. Thelist of these objects will instantiate a SpeciesList in thephysics kernel at runtime.Revision/Author/Date0.9 (JohnV 01-26-95) Original code.0.91 (JohnV 06-26-95) SpeciesID -> StringParameter.1.1 (JohnV 12-13-96) Add supercycleIndex, rename speciesSub -> subcycleIndex.1.2 (JohnV 01-08-97) Added collisionModel to specify collision type by species.====================================================================*/#ifndef __SPECIESG_H#define __SPECIESG_H#include "species.h"#include "part1g.h"class SpeciesParams : public ParameterGroup{ ScalarParameter q; // charge in coulombs of physical particle ScalarParameter m; // mass in kg of physical particle ScalarParameter threshold; // threshold for removal if the collisionModel is test, in eV. IntParameter particleLimit; // max number of paricles in this species StringParameter speciesName; // unique species name IntParameter subcycleIndex; //sub cycle value IntParameter supercycleIndex; StringParameter collisionModel; // determines model for collisions // Parameter for specifying that RMS diagnostics should be calculated and plotted // Bruhwiler and Dimitrov, 10/10/2000 IntParameter rmsDiagnosticsFlag; public: SpeciesParams(); virtual ~SpeciesParams() {} Scalar get_q() {return q.getValue();} Scalar get_m() {return m.getValue();} Scalar get_threshold() {return threshold.getValue();} int get_particleLimit() {return particleLimit.getValue();} int get_rmsDiagnosticsFlag() {return rmsDiagnosticsFlag.getValue();} int get_subcycleIndex() {return subcycleIndex.getValue();} int get_supercycleIndex() {return supercycleIndex.getValue();} ostring get_speciesName() {return speciesName.getValue();}// CollisionModel get_collisionModel() {return (CollisionModel)collisionModel.getValue();} CollisionModel get_collisionModel(); Species* createCounterPart();};typedef oopicList<SpeciesParams> SpeciesParamsList;#endif // __SPECIESG_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -