Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78082187
WeakEquationDiffusion.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
Sun, Aug 18, 07:55
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Aug 20, 07:55 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
19970115
Attached To
rLAMMPS lammps
WeakEquationDiffusion.cpp
View Options
#include "ATC_Transfer.h"
#include "WeakEquationDiffusion.h"
#include "Material.h"
#include <iostream>
#include <fstream>
namespace
ATC
{
//==============================================================
// Class WeakEquationDiffusion
//==============================================================
//--------------------------------------------------------------
// Constructor
//--------------------------------------------------------------
WeakEquationDiffusion
::
WeakEquationDiffusion
()
:
WeakEquation
(
DYNAMIC_PDE
,
SPECIES_CONCENTRATION
,
1
)
{}
//--------------------------------------------------------------
// Destructor
//--------------------------------------------------------------
WeakEquationDiffusion
::~
WeakEquationDiffusion
(
void
)
{}
//---------------------------------------------------------------------
// compute capacity
//---------------------------------------------------------------------
void
WeakEquationDiffusion
::
M_integrand
(
const
FIELD_MATS
&
fields
,
const
Material
*
material
,
DENS_MAT
&
capacity
)
const
{
FIELD_MATS
::
const_iterator
rhoField
=
fields
.
find
(
SPECIES_CONCENTRATION
);
const
DENS_MAT
&
rho
=
rhoField
->
second
;
capacity
.
reset
(
rho
.
nRows
(),
rho
.
nCols
());
capacity
=
1.
;
}
//--------------------------------------------------------------
// compute flux
//--------------------------------------------------------------
void
WeakEquationDiffusion
::
B_integrand
(
const
FIELD_MATS
&
fields
,
const
GRAD_FIELD_MATS
&
grad_fields
,
const
Material
*
material
,
DENS_MAT_VEC
&
flux
)
const
{
// material->diffusion_flux(fields, grad_fields, flux[SPECIES_CONCENTRATION]);
}
};
// end namespace
Event Timeline
Log In to Comment