Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82646708
WeakEquationChargeDiffusion.cpp
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
Thu, Sep 12, 15:29
Size
1 KB
Mime Type
text/x-c
Expires
Sat, Sep 14, 15:29 (2 d)
Engine
blob
Format
Raw Data
Handle
20725835
Attached To
rLAMMPS lammps
WeakEquationChargeDiffusion.cpp
View Options
#include "ATC_Transfer.h"
#include "WeakEquationChargeDiffusion.h"
#include "Material.h"
#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
Event Timeline
Log In to Comment