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

📄 vbmemit.h

📁 pic 模拟程序!面向对象
💻 H
字号:
#ifndef	__VBMEMIT_H#define	__VBMEMIT_H/*====================================================================vbmemit.hClass representing a conductor which emits a uniform beam of electronswhich are weighted linearly in radius.  This class only makes sensefor an emitter with normal in z in z-r corrdinates; this should beenforced by the expert advisor.0.99	(JohnV 09-13-94) Generate to polymorph BeamEmitter for variable		weighted particles.0.991	(JohnV 02-10-95) Add secondary electron emission.1.101 (JohnV 11-08-96) Add obliqueEmit().1.2   (JohnV 02-13-00) Add J(x,t) capability.1.21  (JohnV 03-26-00) Add nEmit to set the number per dt to emit====================================================================*/#include	"ovector.h"#include "vmaxwelln.h"#include	"particle.h"#include "beamemit.h"class VarWeightBeamEmitter : public BeamEmitter{	Scalar	rFraction;						//	stores next r/rMax to be emitted	Scalar	w0;                        //	r/rMax = w0 + w1*random	Scalar	w1;	Scalar	getNext_rFraction() {return w0 + w1*frand();}	void	initialize();	Scalar	qMax() {return get_q();}			//	q at outer radius	Scalar	np2cMax() {return np2c;}	// np2c at outer radius;	int nEmit; // sets the number of particles to emit per dt if nonzero	Scalar	q_over_m;//	Vector2	delta;							//	small perturbation away from boundary   Scalar* obl_rFraction;              // stores array of rFraction for obliquespublic:	VarWeightBeamEmitter(MaxwellianFlux *max, Scalar current,		oopicList <LineSegment> *segments, Scalar max_np2c, Scalar thetaDot, int nEmit);	~VarWeightBeamEmitter();	ParticleList& emit(Scalar t,Scalar dt, Species* species);	ParticleList& obliqueEmit(Scalar t,Scalar dt);};#endif	//	ifndef __VBMEMIT_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -