2013-08-08 05:34:54 +08:00
|
|
|
#ifndef WEAK_EQUATION_CHARGE_DIFFUSION_H
|
|
|
|
#define WEAK_EQUATION_CHARGE_DIFFUSION_H
|
|
|
|
|
2013-08-22 07:06:07 +08:00
|
|
|
#include <set>
|
|
|
|
#include <string>
|
|
|
|
|
2013-08-08 05:34:54 +08:00
|
|
|
#include "WeakEquation.h"
|
|
|
|
|
|
|
|
namespace ATC{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @class WeakEquationChargeDiffusion
|
|
|
|
* @brief Charge density computation
|
|
|
|
* int M q = sum_s N q_s
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WeakEquationChargeDiffusion : public WeakEquation {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
// constructor
|
|
|
|
WeakEquationChargeDiffusion();
|
|
|
|
|
|
|
|
// destructor
|
|
|
|
virtual ~WeakEquationChargeDiffusion();
|
|
|
|
|
|
|
|
/** 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 ;
|
|
|
|
/** necessary interfaces */
|
2013-08-22 07:06:07 +08:00
|
|
|
virtual std::set<std::string> needs_material_functions(void) const
|
2013-08-08 05:34:54 +08:00
|
|
|
{
|
2013-08-22 07:06:07 +08:00
|
|
|
std::set<std::string> needs;
|
2013-08-08 05:34:54 +08:00
|
|
|
return needs;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
#endif
|