/home/runner/work/amr-wind/amr-wind/amr-wind/mesh_mapping_models/ChannelFlowMap.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/mesh_mapping_models/ChannelFlowMap.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
ChannelFlowMap.H
Go to the documentation of this file.
1#ifndef CHANNELFLOWMAP_H
2#define CHANNELFLOWMAP_H
3
5#include "AMReX_REAL.H"
6
7using namespace amrex::literals;
8
9namespace amr_wind::channel_map {
10
14class ChannelFlowMap : public MeshMap::Register<ChannelFlowMap>
15{
16public:
17 static std::string identifier() { return "ChannelFlowMap"; }
18
19 explicit ChannelFlowMap();
20
21 ~ChannelFlowMap() override = default;
22
24 void create_map(int /*lev*/, const amrex::Geometry& /*geom*/) override;
25
27 void create_cell_node_map(int /*lev*/, const amrex::Geometry& /*geom*/);
28
30 void create_face_map(int /*lev*/, const amrex::Geometry& /*geom*/);
31
33 void create_non_uniform_mesh(int /*lev*/, const amrex::Geometry& /*geom*/);
34
35private:
37 amrex::Vector<amrex::Real> m_beta{0.0_rt, 3.0_rt, 0.0_rt};
38
39 amrex::Real m_eps{std::numeric_limits<amrex::Real>::epsilon() * 1.0e5_rt};
40};
41
42} // namespace amr_wind::channel_map
43
44#endif /* CHANNELFLOWMAP_H */
amrex::Real m_eps
Definition ChannelFlowMap.H:39
static std::string identifier()
Definition ChannelFlowMap.H:17
void create_cell_node_map(int, const amrex::Geometry &)
Construct mesh scaling field on cell centers and nodes.
Definition ChannelFlowMap.cpp:66
void create_non_uniform_mesh(int, const amrex::Geometry &)
Construct the non-uniform mesh field.
Definition ChannelFlowMap.cpp:254
void create_map(int, const amrex::Geometry &) override
Construct the mesh scaling field.
Definition ChannelFlowMap.cpp:57
void create_face_map(int, const amrex::Geometry &)
Construct mesh scaling field on cell faces.
Definition ChannelFlowMap.cpp:151
amrex::Vector< amrex::Real > m_beta
User input parameters.
Definition ChannelFlowMap.H:37
ChannelFlowMap()
Definition ChannelFlowMap.cpp:49
Definition ChannelFlowMap.cpp:10