forked from lijiext/lammps
41 lines
1.3 KiB
C++
41 lines
1.3 KiB
C++
#include "ATC_Transfer.h"
|
|
#include "WeakEquationChargeDiffusion.h"
|
|
#include "Material.h"
|
|
#include <string>
|
|
#include <iostream>
|
|
#include <fstream>
|
|
|
|
namespace ATC {
|
|
|
|
//==============================================================
|
|
// Class WeakEquationChargeDiffusion
|
|
//==============================================================
|
|
|
|
//--------------------------------------------------------------
|
|
// Constructor
|
|
//--------------------------------------------------------------
|
|
WeakEquationChargeDiffusion::WeakEquationChargeDiffusion()
|
|
: WeakEquation(PROJECTION_PDE,CHARGE_DENSITY,1)
|
|
{}
|
|
//--------------------------------------------------------------
|
|
// Destructor
|
|
//--------------------------------------------------------------
|
|
WeakEquationChargeDiffusion::~WeakEquationChargeDiffusion(void)
|
|
{}
|
|
//---------------------------------------------------------------------
|
|
// compute capacity
|
|
//---------------------------------------------------------------------
|
|
void WeakEquationChargeDiffusion::M_integrand(
|
|
const FIELD_MATS &fields,
|
|
const Material * material,
|
|
DENS_MAT & capacity ) const
|
|
{
|
|
FIELD_MATS::const_iterator rhoField = fields.find(CHARGE_DENSITY);
|
|
const DENS_MAT & rho = rhoField->second;
|
|
capacity.reset(rho.nRows(),rho.nCols());
|
|
capacity = 1.;
|
|
}
|
|
}; // end namespace
|
|
|
|
|