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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/mesh_mapping_models/ConstantMap.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
ConstantMap.H
Go to the documentation of this file.
1#ifndef CONSTANTMAP_H
2#define CONSTANTMAP_H
3
5
6namespace amr_wind::const_map {
7
11class ConstantMap : public MeshMap::Register<ConstantMap>
12{
13public:
14 static std::string identifier() { return "ConstantMap"; }
15
16 explicit ConstantMap();
17
18 ~ConstantMap() override = default;
19
21 void create_map(int /*lev*/, const amrex::Geometry& /*geom*/) override;
22
24 void create_cell_node_map(int /*lev*/);
25
27 void create_face_map(int /*lev*/);
28
30 void create_non_uniform_mesh(int /*lev*/, const amrex::Geometry& /*geom*/);
31
32private:
34 amrex::Vector<amrex::Real> m_fac{1.0, 1.0, 1.0};
35};
36
37} // namespace amr_wind::const_map
38
39#endif /* CONSTANTMAP_H */
Definition ConstantMap.H:12
void create_map(int, const amrex::Geometry &) override
Construct the mesh scaling field.
Definition ConstantMap.cpp:15
amrex::Vector< amrex::Real > m_fac
Factor to scale the mesh by.
Definition ConstantMap.H:34
ConstantMap()
Definition ConstantMap.cpp:7
void create_cell_node_map(int)
Construct mesh scaling field on cell centers and nodes.
Definition ConstantMap.cpp:24
void create_non_uniform_mesh(int, const amrex::Geometry &)
Construct the non-uniform mesh field.
Definition ConstantMap.cpp:126
static std::string identifier()
Definition ConstantMap.H:14
~ConstantMap() override=default
void create_face_map(int)
Construct mesh scaling field on cell faces.
Definition ConstantMap.cpp:66
Definition ConstantMap.cpp:5