Class SCLaplaceOperator is a concrete LaplaceOperator which implements a globally second-order accurate side-centered finite difference discretization of a scalar elliptic operator of the form \( L = C I + \nabla \cdot D \nabla\).
#include <ibtk/SCLaplaceOperator.h>
◆ SCLaplaceOperator() [1/3]
◆ ~SCLaplaceOperator()
| IBTK::SCLaplaceOperator::~SCLaplaceOperator |
( |
| ) |
|
◆ SCLaplaceOperator() [2/3]
| IBTK::SCLaplaceOperator::SCLaplaceOperator |
( |
| ) |
|
|
privatedelete |
- Note
- This constructor is not implemented and should not be used.
◆ SCLaplaceOperator() [3/3]
- Note
- This constructor is not implemented and should not be used.
- Parameters
-
| from | The value to copy to this object. |
◆ apply()
Before calling this function, the form of the vectors x and y should be set properly by the user on all patch interiors on the range of levels covered by the operator. All data in these vectors should be allocated. Thus, the user is responsible for managing the storage for the vectors.
Conditions on arguments:
- vectors must have same hierarchy
- vectors must have same variables (except that x must have enough ghost cells for computation of Ax).
- Note
- In general, the vectors x and y cannot be the same.
Upon return from this function, the y vector will contain the result of the application of A to x.
initializeOperatorState must be called prior to any calls to applyOperator.
- See also
- initializeOperatorState
- Parameters
-
Implements IBTK::GeneralOperator.
Reimplemented in IBTK::VCSCViscousOperator.
◆ initializeOperatorState()
◆ deallocateOperatorState()
| void IBTK::SCLaplaceOperator::deallocateOperatorState |
( |
| ) |
|
|
overridevirtual |
◆ operator=()
- Note
- This operator is not implemented and should not be used.
- Parameters
-
| that | The value to assign to this object. |
- Returns
- A reference to this object.
◆ setPoissonSpecifications()
◆ getPoissonSpecifications()
◆ setPhysicalBcCoef()
- Note
- bc_coef may be nullptr. In this case, default boundary conditions (as supplied to the class constructor) are employed.
- Parameters
-
| bc_coef | Pointer to an object that can set the Robin boundary condition coefficients |
◆ setPhysicalBcCoefs()
- Note
- Any of the elements of bc_coefs may be nullptr. In this case, default boundary conditions (as supplied to the class constructor) are employed for that data depth.
- Parameters
-
| bc_coefs | Vector of pointers to objects that can set the Robin boundary condition coefficients |
◆ getPhysicalBcCoefs()
◆ modifyRhsForBcs()
Before calling this function, the form of the vector y should be set properly by the user on all patch interiors on the range of levels covered by the operator. All data in this vector should be allocated. The user is responsible for managing the storage for the vectors.
- Note
- The operator MUST be initialized prior to calling modifyRhsForBcs.
- See also
- initializeOperatorState
- Note
- A default implementation evaluates y := y - A*0.
Reimplemented from IBTK::GeneralOperator.
◆ getName()
| const std::string& IBTK::GeneralOperator::getName |
( |
| ) |
const |
|
inherited |
◆ getIsInitialized()
| virtual bool IBTK::GeneralOperator::getIsInitialized |
( |
| ) |
const |
|
virtualinherited |
◆ setHomogeneousBc()
| virtual void IBTK::GeneralOperator::setHomogeneousBc |
( |
bool |
homogeneous_bc | ) |
|
|
virtualinherited |
◆ getHomogeneousBc()
| virtual bool IBTK::GeneralOperator::getHomogeneousBc |
( |
| ) |
const |
|
virtualinherited |
◆ setSolutionTime()
| virtual void IBTK::GeneralOperator::setSolutionTime |
( |
double |
solution_time | ) |
|
|
virtualinherited |
◆ getSolutionTime()
| virtual double IBTK::GeneralOperator::getSolutionTime |
( |
| ) |
const |
|
virtualinherited |
◆ setTimeInterval()
| virtual void IBTK::GeneralOperator::setTimeInterval |
( |
double |
current_time, |
|
|
double |
new_time |
|
) |
| |
|
virtualinherited |
◆ getTimeInterval()
| virtual std::pair<double, double> IBTK::GeneralOperator::getTimeInterval |
( |
| ) |
const |
|
virtualinherited |
◆ getDt()
| virtual double IBTK::GeneralOperator::getDt |
( |
| ) |
const |
|
virtualinherited |
◆ setHierarchyMathOps()
◆ getHierarchyMathOps()
◆ applyAdd()
Before calling applyAdd(), the form of the vectors x, y, and z should be set properly by the user on all patch interiors on the specified range of levels in the patch hierarchy. The user is responsible for all data management for the quantities associated with the vectors. In particular, patch data in these vectors must be allocated prior to calling this method.
- Parameters
-
| x | input vector |
| y | input vector |
| z | output vector, i.e., \(z=F[x]+y\) |
Conditions on Parameters:
- vectors x, y, and z must have same hierarchy
- vectors x, y, and z must have same structure, depth, etc.
In general, the vectors x and y cannot be the same.
- Note
- Subclasses may require that the operator be initialized prior to calling applyAdd().
- See also
- initializeOperatorState
- Note
- A default implementation is provided which employs apply() and SAMRAI::solv::SAMRAIVectorReal::add().
Reimplemented in IBTK::PETScSNESJacobianJOWrapper, and IBTK::PETScMatLOWrapper.
◆ imposeSolBcs()
Before calling this function, the form of the vector y should be set properly by the user on all patch interiors on the range of levels covered by the operator. All data in this vector should be allocated. The user is responsible for managing the storage for the vectors.
- Note
- The operator MUST be initialized prior to calling imposeSolBcs.
- See also
- initializeOperatorState
- Note
- A default implementation does not modify the sol vector u.
◆ setLoggingEnabled()
| virtual void IBTK::GeneralOperator::setLoggingEnabled |
( |
bool |
enable_logging = true | ) |
|
|
virtualinherited |
◆ getLoggingEnabled()
| virtual bool IBTK::GeneralOperator::getLoggingEnabled |
( |
| ) |
const |
|
virtualinherited |
◆ printClassData()
| virtual void IBTK::GeneralOperator::printClassData |
( |
std::ostream & |
stream | ) |
|
|
virtualinherited |
◆ d_ncomp
| int IBTK::SCLaplaceOperator::d_ncomp = 0 |
|
protected |
◆ d_fill_pattern
◆ d_transaction_comps
◆ d_hier_bdry_fill
◆ d_no_fill
◆ d_hierarchy
◆ d_coarsest_ln
◆ d_finest_ln
◆ d_bc_helpers
◆ d_data_refine_type
| std::string IBTK::SCLaplaceOperator::d_data_refine_type = "NONE" |
|
protected |
◆ d_use_cf_interpolation
| bool IBTK::SCLaplaceOperator::d_use_cf_interpolation = true |
|
protected |
◆ d_data_coarsen_type
| std::string IBTK::SCLaplaceOperator::d_data_coarsen_type = "CUBIC_COARSEN" |
|
protected |
◆ d_bdry_extrap_type
| std::string IBTK::SCLaplaceOperator::d_bdry_extrap_type = "LINEAR" |
|
protected |
◆ d_use_consistent_type_2_bdry
| bool IBTK::SCLaplaceOperator::d_use_consistent_type_2_bdry = false |
|
protected |
◆ d_poisson_spec
◆ d_default_bc_coef
◆ d_bc_coefs
◆ d_object_name
| const std::string IBTK::GeneralOperator::d_object_name |
|
protectedinherited |
◆ d_is_initialized
| bool IBTK::GeneralOperator::d_is_initialized = false |
|
protectedinherited |
◆ d_homogeneous_bc
| bool IBTK::GeneralOperator::d_homogeneous_bc |
|
protectedinherited |
◆ d_solution_time
| double IBTK::GeneralOperator::d_solution_time = std::numeric_limits<double>::quiet_NaN() |
|
protectedinherited |
◆ d_current_time
| double IBTK::GeneralOperator::d_current_time = std::numeric_limits<double>::quiet_NaN() |
|
protectedinherited |
◆ d_new_time
| double IBTK::GeneralOperator::d_new_time = std::numeric_limits<double>::quiet_NaN() |
|
protectedinherited |
◆ d_hier_math_ops
◆ d_hier_math_ops_external
| bool IBTK::GeneralOperator::d_hier_math_ops_external = false |
|
protectedinherited |
◆ d_enable_logging
| bool IBTK::GeneralOperator::d_enable_logging = false |
|
protectedinherited |
The documentation for this class was generated from the following file: