Class SurfaceTensionForceFunction provides surface tension forcing using the continuum surface tension force model of Brackbill, Kothe, and Zemach.
More...
#include <ibamr/SurfaceTensionForceFunction.h>
|
| using | MaskSurfaceTensionForcePtr = void(*)(int F_idx, SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps > hier_math_ops, int cycle_num, double time, double current_time, double new_time, void *ctx) |
| | Function to Mask surface tension force to act only on the liquid-gas interface. More...
|
| |
| using | ComputeSurfaceTensionCoefficientPtr = void(*)(int F_idx, SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps > hier_math_ops, int cycle_num, double time, double current_time, double new_time, void *ctx) |
| | Function to compute the variable surface tension coefficient. More...
|
| |
|
| | SurfaceTensionForceFunction (const std::string &object_name, SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > input_db, const AdvDiffHierarchyIntegrator *adv_diff_solver, const SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >> level_set_var) |
| | Constructor. More...
|
| |
| virtual | ~SurfaceTensionForceFunction ()=default |
| | Destructor. More...
|
| |
| virtual void | setSmoother (const std::string &kernel_fcn) |
| | Set the smoother (kernel function) to mollify the Heaviside function. More...
|
| |
| virtual void | setSurfaceTensionCoef (double sigma) |
| | Set the constant surface tension coefficient. More...
|
| |
| virtual void | setNumberOfInterfaceCells (double m) |
| | Set the number of interface cells m over which the surface tension force will be applied. The surface tension will take effect in the band -m*h to m*h around the interface, where h = (dx*dy)^(1/2) in 2D and h = (dx*dy*dz)^(1/3) in 3D. More...
|
| |
| std::string | getSmoother () const |
| | Get the smoother (kernel function) to mollify the Heaviside function. More...
|
| |
| double | getSurfaceTensionCoef () const |
| | Get the constant surface tension coefficient. More...
|
| |
| double | getNumberOfInterfaceCells () const |
| | Get the number of interface cells over which the surface tension force will be applied. More...
|
| |
| bool | isTimeDependent () const override |
| |
| void | setDataOnPatchHierarchy (int data_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >> var, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM >> hierarchy, double data_time, bool initial_time=false, int coarsest_ln=IBTK::invalid_level_number, int finest_ln=IBTK::invalid_level_number) override |
| | Evaluate the function on the patch interiors on the specified levels of the patch hierarchy using the virtual function setDataOnPatch(). More...
|
| |
| void | setDataOnPatch (int data_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >> var, SAMRAI::tbox::Pointer< SAMRAI::hier::Patch< NDIM >> patch, double data_time, bool initial_time=false, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM >> level=SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM >>(nullptr)) override |
| |
| void | registerSurfaceTensionForceMasking (MaskSurfaceTensionForcePtr callback, void *ctx) |
| | Register function to limit the surface tension force. More...
|
| |
| void | registerSurfaceTensionCoefficientFunction (ComputeSurfaceTensionCoefficientPtr callback, void *ctx) |
| | Register function to compute the variable surface tension coefficient. More...
|
| |
|
| | SurfaceTensionForceFunction ()=delete |
| | Default constructor. More...
|
| |
| | SurfaceTensionForceFunction (const SurfaceTensionForceFunction &from)=delete |
| | Copy constructor. More...
|
| |
| SurfaceTensionForceFunction & | operator= (const SurfaceTensionForceFunction &that)=delete |
| | Assignment operator. More...
|
| |
| void | convertToHeaviside (int phi_idx, int coarsest_ln, int finest_ln, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM >> patch_hierarchy) |
| |
| void | mollifyData (int phi_idx, int coarsest_ln, int finest_ln, double data_time, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM >> hierarchy, SAMRAI::tbox::Pointer< IBTK::HierarchyGhostCellInterpolation > fill_op) |
| |
| void | setDataOnPatchCell (SAMRAI::tbox::Pointer< SAMRAI::pdat::CellData< NDIM, double >> F_data, SAMRAI::tbox::Pointer< SAMRAI::hier::Patch< NDIM >> patch, const double data_time, const bool initial_time, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM >> level) |
| |
| void | setDataOnPatchSide (SAMRAI::tbox::Pointer< SAMRAI::pdat::SideData< NDIM, double >> F_data, SAMRAI::tbox::Pointer< SAMRAI::hier::Patch< NDIM >> patch, const double data_time, const bool initial_time, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM >> level) |
| |
| int | getStencilSize (const std::string &kernel_fcn) |
| |
- Note
- Presently, this class assumes that the indicator function is a cell centered level-set variable that is maintained by the advection-diffusion integrator. In general, the indicator variable can either be a level set function, a volume fraction function, or a phase field function.
Reference Brackbill et. al, A continuum method for modeling surface tension
◆ MaskSurfaceTensionForcePtr
◆ ComputeSurfaceTensionCoefficientPtr
◆ SurfaceTensionForceFunction() [1/3]
◆ ~SurfaceTensionForceFunction()
| virtual IBAMR::SurfaceTensionForceFunction::~SurfaceTensionForceFunction |
( |
| ) |
|
|
virtualdefault |
◆ SurfaceTensionForceFunction() [2/3]
| IBAMR::SurfaceTensionForceFunction::SurfaceTensionForceFunction |
( |
| ) |
|
|
privatedelete |
- Note
- This constructor is not implemented and should not be used.
◆ SurfaceTensionForceFunction() [3/3]
- Note
- This constructor is not implemented and should not be used.
- Parameters
-
| from | The value to copy to this object. |
◆ setSmoother()
| virtual void IBAMR::SurfaceTensionForceFunction::setSmoother |
( |
const std::string & |
kernel_fcn | ) |
|
|
virtual |
◆ setSurfaceTensionCoef()
| virtual void IBAMR::SurfaceTensionForceFunction::setSurfaceTensionCoef |
( |
double |
sigma | ) |
|
|
virtual |
◆ setNumberOfInterfaceCells()
| virtual void IBAMR::SurfaceTensionForceFunction::setNumberOfInterfaceCells |
( |
double |
m | ) |
|
|
virtual |
◆ getSmoother()
| std::string IBAMR::SurfaceTensionForceFunction::getSmoother |
( |
| ) |
const |
|
inline |
◆ getSurfaceTensionCoef()
| double IBAMR::SurfaceTensionForceFunction::getSurfaceTensionCoef |
( |
| ) |
const |
|
inline |
◆ getNumberOfInterfaceCells()
| double IBAMR::SurfaceTensionForceFunction::getNumberOfInterfaceCells |
( |
| ) |
const |
|
inline |
◆ isTimeDependent()
| bool IBAMR::SurfaceTensionForceFunction::isTimeDependent |
( |
| ) |
const |
|
overridevirtual |
◆ setDataOnPatchHierarchy()
◆ setDataOnPatch()
◆ registerSurfaceTensionForceMasking()
◆ registerSurfaceTensionCoefficientFunction()
◆ getMinimumGhostWidth()
| int IBAMR::SurfaceTensionForceFunction::getMinimumGhostWidth |
( |
const std::string & |
kernel_fcn | ) |
|
|
protected |
Get the ghost cell width of scratch data.
◆ addForcesOnPatchHierarchy()
| virtual void IBAMR::SurfaceTensionForceFunction::addForcesOnPatchHierarchy |
( |
int |
data_idx, |
|
|
double |
data_time |
|
) |
| |
|
protectedvirtual |
◆ 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.
◆ convertToHeaviside()
Convert the level set variable to a smoothed heaviside function.
◆ mollifyData()
◆ setDataOnPatchCell()
Set the data on the patch interior.
◆ setDataOnPatchSide()
Set the data on the patch interior.
◆ getStencilSize()
| int IBAMR::SurfaceTensionForceFunction::getStencilSize |
( |
const std::string & |
kernel_fcn | ) |
|
|
private |
Get the stencil size for the kernel.
◆ setDataOnPatchLevel()
◆ d_adv_diff_solver
◆ d_ls_var
◆ d_ts_type
◆ d_C_idx
◆ d_phi_idx
◆ d_kernel_fcn
| std::string IBAMR::SurfaceTensionForceFunction::d_kernel_fcn |
|
protected |
◆ d_sigma
| double IBAMR::SurfaceTensionForceFunction::d_sigma = std::numeric_limits<double>::signaling_NaN() |
|
protected |
◆ d_num_interface_cells
| double IBAMR::SurfaceTensionForceFunction::d_num_interface_cells = std::numeric_limits<double>::signaling_NaN() |
|
protected |
◆ d_hier_math_ops
◆ d_hier_sc_data_ops
◆ d_mask_surface_tension_force
◆ d_mask_surface_tension_force_ctx
| void* IBAMR::SurfaceTensionForceFunction::d_mask_surface_tension_force_ctx = nullptr |
|
private |
◆ d_compute_surface_tension_coef
◆ d_compute_surface_tension_coef_ctx
| void* IBAMR::SurfaceTensionForceFunction::d_compute_surface_tension_coef_ctx = nullptr |
|
private |
◆ d_object_name
| std::string IBTK::CartGridFunction::d_object_name |
|
protectedinherited |
The documentation for this class was generated from the following file: