|
IBAMR
IBAMR version 0.20.
|
Class MarangoniSurfaceTensionForceFunction provides Marangoni forcing due to temperature variations. This class computes the forcing term \( F = \frac{\mathrm{d} \sigma}{\mathrm{d} T}(\nabla T |\nabla C| - (\nabla T \cdot \nabla \phi) \nabla C)\) and add it to the surface tension forcing. More...
#include <ibamr/MarangoniSurfaceTensionForceFunction.h>

Public Types | |
| 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... | |
Public Member Functions | |
| MarangoniSurfaceTensionForceFunction (const std::string &object_name, SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > input_db, AdvDiffHierarchyIntegrator *adv_diff_solver, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >> level_set_var, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >> T_var, SAMRAI::solv::RobinBcCoefStrategy< NDIM > *&T_bc_coef) | |
| Constructor. More... | |
| virtual | ~MarangoniSurfaceTensionForceFunction ()=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... | |
| 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... | |
Protected Member Functions | |
| int | getMinimumGhostWidth (const std::string &kernel_fcn) |
Protected Attributes | |
| const AdvDiffHierarchyIntegrator *const | d_adv_diff_solver |
| const SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > | d_ls_var |
| TimeSteppingType | d_ts_type |
| int | d_C_idx = IBTK::invalid_index |
| int | d_phi_idx = IBTK::invalid_index |
| std::string | d_kernel_fcn |
| double | d_sigma = std::numeric_limits<double>::signaling_NaN() |
| double | d_num_interface_cells = std::numeric_limits<double>::signaling_NaN() |
| SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps > | d_hier_math_ops |
| SAMRAI::tbox::Pointer< SAMRAI::math::HierarchySideDataOpsReal< NDIM, double > > | d_hier_sc_data_ops |
Private Member Functions | |
| 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) |
| int | getStencilSize (const std::string &kernel_fcn) |
Private Attributes | |
| MaskSurfaceTensionForcePtr | d_mask_surface_tension_force = nullptr |
| void * | d_mask_surface_tension_force_ctx = nullptr |
| ComputeSurfaceTensionCoefficientPtr | d_compute_surface_tension_coef = nullptr |
| void * | d_compute_surface_tension_coef_ctx = nullptr |
Methods to set the data. | |
| using | ComputeMarangoniCoefPtr = 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) |
| Callback function to compute the marangoni coefficient as a function of temperature and multiply it with the F_data as F_data = marangoni_coef*F_data. More... | |
| SAMRAI::tbox::Pointer< SAMRAI::pdat::CellVariable< NDIM, double > > | d_T_var |
| int | d_T_idx = IBTK::invalid_index |
| int | d_F_cloned_idx = IBTK::invalid_index |
| double | d_marangoni_coefficient = 0.0 |
| SAMRAI::solv::RobinBcCoefStrategy< NDIM > * | d_T_bc_coef = nullptr |
| ComputeMarangoniCoefPtr | d_compute_marangoni_coef = nullptr |
| void * | d_compute_marangoni_coef_ctx = nullptr |
| 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=-1, int finest_ln=-1) 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 | registerMarangoniCoefficientFunction (ComputeMarangoniCoefPtr callback, void *ctx) |
| Register callback function to compute the variable marangoni coefficient. More... | |
| void | addForcesOnPatchHierarchy (int data_idx, double data_time) override |
| MarangoniSurfaceTensionForceFunction ()=delete | |
| Default constructor. More... | |
| MarangoniSurfaceTensionForceFunction (const SurfaceTensionForceFunction &from)=delete | |
| Copy constructor. More... | |
| MarangoniSurfaceTensionForceFunction & | operator= (const SurfaceTensionForceFunction &that)=delete |
| Assignment operator. More... | |
| 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) |
Methods to set patch interior data. | |
| virtual void | setDataOnPatchLevel (int data_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >> var, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM >> patch_level, double data_time, bool initial_time=false) |
| Evaluate the function on the patch interiors on the specified level of the patch hierarchy using the virtual function setDataOnPatch(). More... | |
| std::string | d_object_name |
This class uses the callback function to compute the variable Marangoni coefficient as a function of Temperature.
| using IBAMR::MarangoniSurfaceTensionForceFunction::ComputeMarangoniCoefPtr = 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) |
|
inherited |
|
inherited |
| IBAMR::MarangoniSurfaceTensionForceFunction::MarangoniSurfaceTensionForceFunction | ( | const std::string & | object_name, |
| SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > | input_db, | ||
| AdvDiffHierarchyIntegrator * | adv_diff_solver, | ||
| SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >> | level_set_var, | ||
| SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >> | T_var, | ||
| SAMRAI::solv::RobinBcCoefStrategy< NDIM > *& | T_bc_coef | ||
| ) |
|
virtualdefault |
|
privatedelete |
|
privatedelete |
| from | The value to copy to this object. |
|
overridevirtual |
Implements IBTK::CartGridFunction.
|
overridevirtual |
Reimplemented from IBTK::CartGridFunction.
|
overridevirtual |
Set the data on the patch interior.
Implements IBTK::CartGridFunction.
| void IBAMR::MarangoniSurfaceTensionForceFunction::registerMarangoniCoefficientFunction | ( | ComputeMarangoniCoefPtr | callback, |
| void * | ctx | ||
| ) |
|
overrideprotectedvirtual |
Add the Marangoni force, after applying the Marangoni coefficient function if one is registered.
Reimplemented from IBAMR::SurfaceTensionForceFunction.
|
privatedelete |
| that | The value to assign to this object. |
|
private |
Set the data on the patch interior.
|
private |
Set the data on the patch interior.
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
protectedinherited |
Get the ghost cell width of scratch data.
|
privateinherited |
Convert the level set variable to a smoothed heaviside function.
|
privateinherited |
Mollify data.
|
privateinherited |
Get the stencil size for the kernel.
|
virtualinherited |
Reimplemented in IBTK::CartGridFunctionSet, and IBAMR::CFINSForcing.
|
private |
Temperature variable and its patch data index.
|
private |
|
private |
|
private |
Marangoni coefficient.
|
private |
Boundary condition object for temperature.
|
private |
Call back function and the context to find marangoni coefficient as a function of temperature.
|
private |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |