IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
|
Class CFOldroydBStrategy is a concrete CFStrategy that computes the relaxation function for an Oldroyd-B fluid model. More...
#include </home/runner/work/IBAMR/IBAMR/include/ibamr/CFOldroydBStrategy.h>
Public Member Functions | |
CFOldroydBStrategy (std::string object_name, SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > input_db) | |
This constructor reads in the parameters for the model from the input database. | |
void | computeRelaxation (int R_idx, SAMRAI::tbox::Pointer< SAMRAI::pdat::CellVariable< NDIM, double > > R_var, int C_idx, SAMRAI::tbox::Pointer< SAMRAI::pdat::CellVariable< NDIM, double > > C_var, TensorEvolutionType evolve_type, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > > hierarchy, double data_time) override |
Compute the action of the relaxation operator, given the conformation tensor. More... | |
void | computeStress (int sig_idx, SAMRAI::tbox::Pointer< SAMRAI::pdat::CellVariable< NDIM, double > > sig_var, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > > hierarchy, double data_time) override |
Convert the conformation tensor to the stress tensor. More... | |
Public Member Functions inherited from IBAMR::CFStrategy | |
CFStrategy (std::string object_name) | |
This constructor does nothing interesting. | |
Class CFOldroydBStrategy is a concrete CFStrategy that computes the relaxation function for an Oldroyd-B fluid model.
The input database is searched for the following parameters:
relaxation_time
: Relaxation time of fluid viscosity
: Polymeric contribution to the viscosity
|
overridevirtual |
Compute the action of the relaxation operator, given the conformation tensor.
The parameter evolve_type
determines the form of the tensor provided in C_idx
. A helper function to convert from the data stored in C_idx
to the conformation tensor is provided by convert_to_conformation_tensor
.
The symmetric tensor in patch data index C_idx
is stored using Voigt notation.
Implements IBAMR::CFStrategy.
|
overridevirtual |
Convert the conformation tensor to the stress tensor.
This conversion should be done in-place. The conformation tensor is provided in the patch index sig_idx
with ghost cells filled. Implementations of this function MUST provide correct ghost cell information in sig_idx
.
Implements IBAMR::CFStrategy.