-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSetLSProperties.h
101 lines (83 loc) · 3.1 KB
/
SetLSProperties.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
// ---------------------------------------------------------------------
//
// Copyright (c) 2019 - 2019 by the IBAMR developers
// All rights reserved.
//
// This file is part of IBAMR.
//
// 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.
//
// ---------------------------------------------------------------------
// Filename: SetLSProperties.h
// Created on May 24, 2018 by Nishant Nangia
/////////////////////// INCLUDE GUARD ////////////////////////////////////
#ifndef included_SetLSProperties
#define included_SetLSProperties
///////////////////////////// INCLUDES ///////////////////////////////////
#include <ibamr/LSInitStrategy.h>
#include <ibtk/ibtk_utilities.h>
#include <tbox/Pointer.h>
namespace IBTK
{
class HierarchyMathOps;
}
/*!
* Pre processing call back functionS to be hooked into IBAMR::AdvDiffHierarchyIntegrator class.
*
* \param ls_idx a patch data index for the current level set variable maintained by the integrator.
* \param ctx is the pointer to SetLSProperties class object.
*
* \TODO: Let's move this out of the global namespace and use "snake case" for static function names.
*/
void callSetGasLSCallbackFunction(int ls_gas_idx,
SAMRAI::tbox::Pointer<IBTK::HierarchyMathOps> hier_math_ops,
const int integrator_step,
const double current_time,
const bool initial_time,
const bool regrid_time,
void* ctx);
/*!
* \brief Class SetLSProperties is a utility class which sets level set values on the patch hierarchy
*/
class SetLSProperties
{
public:
/*!
* The only constructor of this class.
*/
SetLSProperties(const std::string& object_name, SAMRAI::tbox::Pointer<IBAMR::LSInitStrategy> ls_gas_ops);
/*!
* Destructor for this class.
*/
~SetLSProperties() = default;
/*!
* Set the density based on the current solid level set information
*/
void setLSGasPatchData(int ls_gas_idx,
SAMRAI::tbox::Pointer<IBTK::HierarchyMathOps> hier_math_ops,
const int integrator_step,
const double current_time,
const bool initial_time,
const bool regrid_time);
private:
/*!
* Default constructor is not implemented and should not be used.
*/
SetLSProperties() = delete;
/*!
* Default assignment operator is not implemented and should not be used.
*/
SetLSProperties& operator=(const SetLSProperties& that) = delete;
/*!
* Default copy constructor is not implemented and should not be used.
*/
SetLSProperties(const SetLSProperties& from) = delete;
/*!
* Name of this object.
*/
std::string d_object_name;
SAMRAI::tbox::Pointer<IBAMR::LSInitStrategy> d_ls_gas_ops;
}; // SetLSProperties
#endif // #ifndef included_SetLSProperties