IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
Public Member Functions | List of all members
IBAMR::CFGiesekusStrategy Class Reference

Class CFGiesekusStrategy is a concrete CFStrategy that computes the relaxation function for the Giesekus fluid model. More...

#include </home/runner/work/IBAMR/IBAMR/include/ibamr/CFGiesekusStrategy.h>

Inheritance diagram for IBAMR::CFGiesekusStrategy:
Inheritance graph
[legend]

Public Member Functions

 CFGiesekusStrategy (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.
 

Detailed Description

Class CFGiesekusStrategy is a concrete CFStrategy that computes the relaxation function for the Giesekus fluid model.

The input database is searched for the following parameters:

Member Function Documentation

◆ computeRelaxation()

void IBAMR::CFGiesekusStrategy::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 
)
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.

◆ computeStress()

void IBAMR::CFGiesekusStrategy::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 
)
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.


The documentation for this class was generated from the following files: