#include <source/solvers/poisson/PoissonSpecifications.h>
Public Member Functions | |
PoissonSpecifications (const string &object_name) | |
Constructor. | |
PoissonSpecifications (const string &object_name, const PoissonSpecifications &r) | |
Copy constructor. | |
~PoissonSpecifications () | |
Destructor (does nothing). | |
const PoissonSpecifications & | operator= (const PoissonSpecifications &r) |
Assignment operator. | |
void | printClassData (ostream &stream) const |
Print out class data. | |
void | setDPatchDataId (int id) |
Set the patch data index for variable D. | |
void | setDConstant (double constant) |
Set the constant value variable D. | |
bool | dIsVariable () const |
Whether D is variable (described by a patch data id). | |
bool | dIsConstant () const |
Whether D is constant. | |
int | getDPatchDataId () const |
Get D's patch data id. | |
double | getDConstant () const |
Get D constant value. | |
void | setCPatchDataId (int id) |
Set the patch data index for C. | |
void | setCConstant (double constant) |
Set C to a constant. | |
void | setCZero () |
Set the value of C to zero. | |
bool | cIsVariable () const |
Whether C is variable (described by a patch data id). | |
bool | cIsZero () const |
Whether C is zero. | |
bool | cIsConstant () const |
Whether C is constant. | |
int | getCPatchDataId () const |
Get C's patch data id. | |
double | getCConstant () const |
Get C as a constant value. |
The scalar Poisson equation is , where C is a scalar field, D is the diffusion coefficient. and u and f are scalar quantities.
This class describes the things you can set: C, D.
Note that the storage and alignment of u, f, C and D depend on the implementation of the solver. For example, if the solver is cell centered, u, f and C are cell-centered while D is side-centered.
|
Constructor. Sets the specifications to their default state:
|
|
Copy constructor.
|
|
Destructor (does nothing).
|
|
Assignment operator. Assign everything except name. |
|
Print out class data.
|
|
Set the patch data index for variable D. In addition, disregard any previous value specified by setDConstant(). |
|
Set the constant value variable D. In addition, disregard any previous patch data index specified by setDPatchDataId(). |
|
Whether D is variable (described by a patch data id).
|
|
Whether D is constant.
|
|
Get D's patch data id. Error if D is not represented by a patch data id.
|
|
Get D constant value. Error if D is not represented by a constant.
|
|
Set the patch data index for C. In addition, disregard any previous values specified by setCConstant() or setCZero(). |
|
Set C to a constant. In addition, disregard any previous value specified by setCPatchDataId() or setCZero(). If you want to set C to zero, use setCZero() instead. This allows solvers to take advantage of fact C is absent. |
|
Set the value of C to zero. In addition, disregard any previous patch data index specified by setDPatchDataId() and any previous constant specified by setCConstant(). |
|
Whether C is variable (described by a patch data id).
|
|
Whether C is zero. As it pertains to what this function returns, C is zero only by calling setCZero(). Calling setCConstant() does not make C zero, even if you pass in the value of zero.
|
|
Whether C is constant. As it pertains to what this function returns, C is constant only by calling setCConstant(). Calling setCZero() does not make C a constant.
|
|
Get C's patch data id. Error if C is not represented by a patch data id.
|
|
Get C as a constant value. Error if C is not represented by a constant.
|