/home/runner/work/amr-wind/amr-wind/amr-wind/overset/OversetOps.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/overset/OversetOps.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
OversetOps.H
Go to the documentation of this file.
1#ifndef OVERSETOPS_H
2#define OVERSETOPS_H
3
4#include "amr-wind/CFDSim.H"
6
7namespace amr_wind {
8
10{
11public:
12 OversetOps() = default;
13
14 void initialize(CFDSim& sim);
15 void pre_advance_work();
16 void post_advance_work();
17
18 void update_gradp();
19
20private:
21 // Functions called within public functions
22 void parameter_output() const;
23 void sharpen_nalu_data();
27
28 // Check for multiphase sim
29 bool m_vof_exists{false};
30
31 // To avoid using sharpened pressure, use hydrostatic pressure
33
34 // Coupling options
36 bool m_disable_mac_proj{false};
38
39 // Verbosity
40 int m_verbose{0};
41
42 // Reinitialization parameters
44 int m_calc_convg_interval{1}; // calctolniter, cconv
45 amrex::Real m_convg_tol = 1e-12;
46 amrex::Real m_relative_length_scale = 1.5;
47 amrex::Real m_upw_margin = 0.1;
48 amrex::Real m_target_cutoff = 0.0; // proc_tgvof_tol
49
50 // Tolerance for VOF-related bound checks
51 const amrex::Real m_vof_tol = 1e-12;
52 // Small number for approximate signed distance function
53 const amrex::Real m_asdf_tiny = 1e-12;
54
55 // Pointer for pressure gradient copy field
57 // Pointer for MultiPhase physics
59
61};
62
63} // namespace amr_wind
64
65#endif /* OVERSETOPS_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition MultiPhase.H:27
Definition OversetOps.H:10
amr_wind::Field * m_gp_copy
Definition OversetOps.H:56
void sharpen_nalu_data()
Definition OversetOps.cpp:207
bool m_replace_gradp_postsolve
Definition OversetOps.H:37
int m_calc_convg_interval
Definition OversetOps.H:44
void initialize(CFDSim &sim)
Definition OversetOps.cpp:12
const amrex::Real m_asdf_tiny
Definition OversetOps.H:53
amrex::Real m_relative_length_scale
Definition OversetOps.H:46
void parameter_output() const
Definition OversetOps.cpp:167
void update_gradp()
Definition OversetOps.cpp:98
CFDSim * m_sim_ptr
Definition OversetOps.H:60
const amrex::Real m_vof_tol
Definition OversetOps.H:51
amrex::Real m_upw_margin
Definition OversetOps.H:47
amrex::Real m_target_cutoff
Definition OversetOps.H:48
bool m_use_hydrostatic_gradp
Definition OversetOps.H:32
amrex::Real m_convg_tol
Definition OversetOps.H:45
void set_hydrostatic_gradp()
Definition OversetOps.cpp:409
void pre_advance_work()
Definition OversetOps.cpp:60
bool m_disable_mac_proj
Definition OversetOps.H:36
bool m_vof_exists
Definition OversetOps.H:29
int m_verbose
Definition OversetOps.H:40
int m_n_iterations
Definition OversetOps.H:43
void post_advance_work()
Definition OversetOps.cpp:155
void replace_masked_gradp()
Definition OversetOps.cpp:437
amr_wind::MultiPhase * m_mphase
Definition OversetOps.H:58
bool m_disable_nodal_proj
Definition OversetOps.H:35
void form_perturb_pressure()
Definition OversetOps.cpp:399
Definition BCInterface.cpp:7