IBAMR  IBAMR version 0.19.
Public Member Functions | Private Attributes | 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 <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. More...
 
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...
 

Private Attributes

double d_alpha = std::numeric_limits<double>::quiet_NaN()
 
double d_relaxation_time = std::numeric_limits<double>::quiet_NaN()
 
double d_viscosity = std::numeric_limits<double>::quiet_NaN()
 
std::string d_object_name
 

Detailed Description

The input database is searched for the following parameters:

Constructor & Destructor Documentation

◆ CFGiesekusStrategy()

IBAMR::CFGiesekusStrategy::CFGiesekusStrategy ( std::string  object_name,
SAMRAI::tbox::Pointer< SAMRAI::tbox::Database input_db 
)

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

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

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.

Member Data Documentation

◆ d_alpha

double IBAMR::CFGiesekusStrategy::d_alpha = std::numeric_limits<double>::quiet_NaN()
private

◆ d_relaxation_time

double IBAMR::CFGiesekusStrategy::d_relaxation_time = std::numeric_limits<double>::quiet_NaN()
private

◆ d_viscosity

double IBAMR::CFGiesekusStrategy::d_viscosity = std::numeric_limits<double>::quiet_NaN()
private

◆ d_object_name

std::string IBAMR::CFStrategy::d_object_name
privateinherited

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