Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91693959
WeakEquationMassDiffusion.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
Wed, Nov 13, 13:38
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Nov 15, 13:38 (2 d)
Engine
blob
Format
Raw Data
Handle
22303881
Attached To
rLAMMPS lammps
WeakEquationMassDiffusion.cpp
View Options
#include "ATC_Transfer.h"
#include "WeakEquationMassDiffusion.h"
#include "Material.h"
#include <iostream>
#include <fstream>
namespace ATC {
//==============================================================
// Class WeakEquationMassDiffusion
//==============================================================
//--------------------------------------------------------------
// Constructor
//--------------------------------------------------------------
WeakEquationMassDiffusion::WeakEquationMassDiffusion()
: WeakEquation(DYNAMIC_PDE,MASS_DENSITY,1)
{}
//--------------------------------------------------------------
// Destructor
//--------------------------------------------------------------
WeakEquationMassDiffusion::~WeakEquationMassDiffusion(void)
{}
//---------------------------------------------------------------------
// compute capacity
//---------------------------------------------------------------------
void WeakEquationMassDiffusion::M_integrand(
const FIELD_MATS &fields,
const Material * material,
DENS_MAT & capacity ) const
{
FIELD_MATS::const_iterator dField = fields.find(MASS_DENSITY);
const DENS_MAT & rho = dField->second;
capacity.reset(rho.nRows(),rho.nCols());
capacity = 1.;
}
//--------------------------------------------------------------
// compute flux
//--------------------------------------------------------------
void WeakEquationMassDiffusion::B_integrand(
const FIELD_MATS &fields,
const GRAD_FIELD_MATS &grad_fields,
const Material * material,
DENS_MAT_VEC &flux) const
{
// material->mass_flux(fields, grad_fields, flux[MASS_DENSITY]);
}
}; // end namespace
Event Timeline
Log In to Comment