Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91684765
WeakEquationElectronContinuity.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 13, 11:03
Size
3 KB
Mime Type
text/x-c
Expires
Fri, Nov 15, 11:03 (2 d)
Engine
blob
Format
Raw Data
Handle
22305084
Attached To
rLAMMPS lammps
WeakEquationElectronContinuity.h
View Options
#ifndef WEAK_EQUATION_ELECTRON_CONTINUITY_H
#define WEAK_EQUATION_ELECTRON_CONTINUITY_H
#include <set>
#include <string>
#include "WeakEquation.h"
namespace ATC{
/**
* @class WeakEquationElectronContinuity
* @brief Electron continuity
* n,t = div J + (G-R) -->
* M n,t = int B J + int N (G-R)
*/
class WeakEquationElectronContinuity : public WeakEquation {
public:
// constructor
WeakEquationElectronContinuity();
// destructor
virtual ~WeakEquationElectronContinuity();
/** density that used to form the mass matrix */
virtual bool has_M_integrand(void) const {return true;}
virtual void M_integrand(const FIELD_MATS &fields,
const Material * material,
DENS_MAT &density ) const ;
/** flux that is integrated with B = Grad N as its weight */
virtual bool has_B_integrand(void) const {return true;}
virtual void B_integrand(const FIELD_MATS &fields,
const GRAD_FIELD_MATS &grad_fields,
const Material * material,
DENS_MAT_VEC &flux) const;
/** flux that is integrated with N as its weight */
virtual bool has_N_integrand(void) const {return true;}
virtual bool N_integrand(const FIELD_MATS &fields,
const GRAD_FIELD_MATS &grad_fields,
const Material * material,
DENS_MAT &flux) const;
/** necessary interfaces */
virtual std::set<std::string> needs_material_functions(void) const
{
std::string list[2] = {"electron_flux","electron_recombination"};
std::set<std::string> needs(list,list+2);
return needs;
}
};
/**
* @class WeakEquationElectronEquilibrium
* @brief Electron continuity from equilibrium
* n = n(\phi)
* M n = int N n(\phi)
*/
class WeakEquationElectronEquilibrium : public WeakEquation {
public:
// constructor
WeakEquationElectronEquilibrium();
// destructor
virtual ~WeakEquationElectronEquilibrium();
/** density that used to form the mass matrix */
virtual bool has_M_integrand(void) const {return true;}
virtual void M_integrand(const FIELD_MATS &fields,
const Material * material,
DENS_MAT &density ) const ;
/** flux that is integrated with N as its weight */
virtual bool has_N_integrand(void) const {return true;}
virtual bool N_integrand(const FIELD_MATS &fields,
const GRAD_FIELD_MATS &grad_fields,
const Material * material,
DENS_MAT &flux) const;
/** flux that is integrated with B = Grad N as its weight */
virtual bool has_B_integrand(void) const {return true;}
virtual void B_integrand(const FIELD_MATS &fields,
const GRAD_FIELD_MATS &grad_fields,
const Material * material,
DENS_MAT_VEC &flux) const;
/** necessary interfaces */
virtual std::set<std::string> needs_material_functions(void) const
{
std::set<std::string> needs;
needs.insert("electron_charge_density");
return needs;
}
};
};
#endif
Event Timeline
Log In to Comment