-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathLSLocateGasInterface.h
108 lines (88 loc) · 3.14 KB
/
LSLocateGasInterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// ---------------------------------------------------------------------
//
// Copyright (c) 2019 - 2022 by the IBAMR developers
// All rights reserved.
//
//
// IBAMR is free software and is distributed under the 3-clause BSD
// license. The full text of the license can be found in the file
// COPYRIGHT at the top level directory of IBAMR.
//
// ---------------------------------------------------------------------
/////////////////////// INCLUDE GUARD ////////////////////////////////////
#ifndef included_LSLocateGasInterface
#define included_LSLocateGasInterface
///////////////////////////// INCLUDES ///////////////////////////////////
#include <ibamr/AdvDiffHierarchyIntegrator.h>
#include <ibtk/ibtk_utilities.h>
#include <tbox/Pointer.h>
namespace IBTK
{
class HierarchyMathOps;
}
/*
* Pre processing call back function to be hooked into IBAMR:LInitStrategy
*
* \TODO: Let's move this out of the global namespace and use "snake case" for static function names.
*/
void callLSLocateGasInterfaceCallbackFunction(int D_idx,
SAMRAI::tbox::Pointer<IBTK::HierarchyMathOps> hier_math_ops,
double time,
bool initial_time,
void* ctx);
/*!
* \brief class LSLocateGasInterface is a utility class which is used to identify
* the circular interface for level set computations
*/
class LSLocateGasInterface
{
public:
/*!
* The only constructor of this class.
*/
LSLocateGasInterface(const std::string& object_name,
SAMRAI::tbox::Pointer<IBAMR::AdvDiffHierarchyIntegrator> adv_diff_solver,
SAMRAI::tbox::Pointer<SAMRAI::pdat::CellVariable<NDIM, double> > ls_var,
const double init_height);
/*!
* Destructor for this class.
*/
~LSLocateGasInterface() = default;
/*!
* Reinitialize the level set information
*/
void setLevelSetPatchData(int D_idx,
SAMRAI::tbox::Pointer<IBTK::HierarchyMathOps> hier_math_ops,
const double time,
const bool initial_time);
private:
/*!
* Default constructor is not implemented and should not be used.
*/
LSLocateGasInterface() = delete;
/*!
* Default assignment operator is not implemented and should not be used.
*/
LSLocateGasInterface& operator=(const LSLocateGasInterface& that) = delete;
/*!
* Default copy constructor is not implemented and should not be used.
*/
LSLocateGasInterface(const LSLocateGasInterface& from) = delete;
/*!
* Name of this object.
*/
std::string d_object_name;
/*!
* Pointer to the advection-diffusion solver
*/
SAMRAI::tbox::Pointer<IBAMR::AdvDiffHierarchyIntegrator> d_adv_diff_solver;
/*!
* Level set variable
*/
SAMRAI::tbox::Pointer<SAMRAI::pdat::CellVariable<NDIM, double> > d_ls_var;
/*!
* Initial level set information.
*/
double d_init_height;
};
#endif // #ifndef included_LSLocateGasInterface