ASL
0.1.7
Advanced Simulation Library
|
Numerical method which computes multicomponent transport processes. More...
#include <aslFDAdvectionDiffusionExtended.h>
Public Types | |
typedef SPDataWithGhostNodesACLData | Data |
typedef SPAbstractDataWithGhostNodes | ScalarField |
Public Member Functions | |
FDAdvectionDiffusionExtended () | |
FDAdvectionDiffusionExtended (Data c, double dC, const VectorTemplate *vT) | |
void | setDiffusionCoefficient (double d, unsigned int i=0) |
double | getDiffusionCoefficient (unsigned int i=0) |
void | setVectorTemplate (VectorTemplate *vT) |
VectorTemplate | setVectorTemplate (const VectorTemplate *vT) |
void | setElectricFieldParameters (ScalarField phi, ScalarField f1, ScalarField f2, ScalarField qAnd) |
virtual void | init () |
Builds the necesery internal data and kernels. More... | |
virtual void | execute () |
Executes the numerical procedure. More... | |
void | addComponent (Data c, double dC) |
void | addComponent (Data c, double dC, ScalarField qAnd) |
![]() | |
virtual | ~NumMethod () |
Numerical method which computes multicomponent transport processes.
\[ \partial_t c_i= D_i \Delta c_i -\nabla\left(\frac{c_i q}{k} \nabla(\phi+f_2) \right)\]
where
cData | corresponds to \(c_i\) |
diffusionCoefficient | corresponds to \(D_i\) |
efFactor1 | corresponds to \(k\) |
efFactor2 | corresponds to \(f_2\) |
efPhi | corresponds to \(\phi\) |
efChargeAnd | corresponds to \(q\) |
This class contains filtering which forbits the local value of \( \frac{q}{k} \nabla(\phi+f_2) \) to be larger than \(0.2\)
Definition at line 60 of file aslFDAdvectionDiffusionExtended.h.
Definition at line 63 of file aslFDAdvectionDiffusionExtended.h.
Definition at line 64 of file aslFDAdvectionDiffusionExtended.h.
asl::FDAdvectionDiffusionExtended::FDAdvectionDiffusionExtended | ( | ) |
asl::FDAdvectionDiffusionExtended::FDAdvectionDiffusionExtended | ( | Data | c, |
double | dC, | ||
const VectorTemplate * | vT | ||
) |
void asl::FDAdvectionDiffusionExtended::addComponent | ( | Data | c, |
double | dC | ||
) |
void asl::FDAdvectionDiffusionExtended::addComponent | ( | Data | c, |
double | dC, | ||
ScalarField | qAnd | ||
) |
|
virtual |
Executes the numerical procedure.
Implements asl::NumMethod.
double asl::FDAdvectionDiffusionExtended::getDiffusionCoefficient | ( | unsigned int | i = 0 | ) |
|
virtual |
Builds the necesery internal data and kernels.
Implements asl::NumMethod.
void asl::FDAdvectionDiffusionExtended::setDiffusionCoefficient | ( | double | d, |
unsigned int | i = 0 |
||
) |
void asl::FDAdvectionDiffusionExtended::setElectricFieldParameters | ( | ScalarField | phi, |
ScalarField | f1, | ||
ScalarField | f2, | ||
ScalarField | qAnd | ||
) |
void asl::FDAdvectionDiffusionExtended::setVectorTemplate | ( | VectorTemplate * | vT | ) |
VectorTemplate asl::FDAdvectionDiffusionExtended::setVectorTemplate | ( | const VectorTemplate * | vT | ) |