/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#include "AMReX_REAL.H"
7
8using namespace amrex::literals;
9
10namespace amr_wind {
11
13{
14public:
15 OversetOps() = default;
16
17 void initialize(CFDSim& sim);
18 void pre_advance_work();
19 void post_advance_work();
20
21 void update_gradp();
22
23private:
24 // Functions called within public functions
25 void parameter_output() const;
26 void sharpen_nalu_data();
29
30 // Check for multiphase sim
31 bool m_vof_exists{false};
32
33 // Coupling options
35
36 // Verbosity
37 int m_verbose{0};
38
39 // Reinitialization parameters
41 int m_calc_convg_interval{1}; // calctolniter, cconv
42 amrex::Real m_convg_tol =
43 std::numeric_limits<amrex::Real>::epsilon() * 1.0e4_rt;
44 amrex::Real m_relative_length_scale = 1.5_rt;
45 amrex::Real m_upw_margin = 0.1_rt;
46 amrex::Real m_target_cutoff = 0.0_rt; // proc_tgvof_tol
47
48 // Tolerance for VOF-related bound checks
49 const amrex::Real m_vof_tol =
50 std::numeric_limits<amrex::Real>::epsilon() * 1.0e4_rt;
51 // Small number for approximate signed distance function
52 const amrex::Real m_asdf_tiny =
53 std::numeric_limits<amrex::Real>::epsilon() * 1.0e4_rt;
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:54
Definition Field.H:116
Definition MultiPhase.H:30
amr_wind::Field * m_gp_copy
Definition OversetOps.H:56
void sharpen_nalu_data()
Definition OversetOps.cpp:195
bool m_replace_gradp_postsolve
Definition OversetOps.H:34
int m_calc_convg_interval
Definition OversetOps.H:41
void initialize(CFDSim &sim)
Definition OversetOps.cpp:17
const amrex::Real m_asdf_tiny
Definition OversetOps.H:52
amrex::Real m_relative_length_scale
Definition OversetOps.H:44
void parameter_output() const
Definition OversetOps.cpp:163
void update_gradp()
Definition OversetOps.cpp:100
CFDSim * m_sim_ptr
Definition OversetOps.H:60
const amrex::Real m_vof_tol
Definition OversetOps.H:49
amrex::Real m_upw_margin
Definition OversetOps.H:45
amrex::Real m_target_cutoff
Definition OversetOps.H:46
amrex::Real m_convg_tol
Definition OversetOps.H:42
void pre_advance_work()
Definition OversetOps.cpp:60
bool m_vof_exists
Definition OversetOps.H:31
int m_verbose
Definition OversetOps.H:37
int m_n_iterations
Definition OversetOps.H:40
void post_advance_work()
Definition OversetOps.cpp:151
void replace_masked_gradp()
Definition OversetOps.cpp:397
amr_wind::MultiPhase * m_mphase
Definition OversetOps.H:58
void form_perturb_pressure()
Definition OversetOps.cpp:387
This test case is intended as an evaluation of the momentum advection scheme.
Definition BCInterface.cpp:10