MMS Class Reference

AMR-Wind API: amr_wind::mms::MMS Class Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches

#include <MMS.H>

Inheritance diagram for amr_wind::mms::MMS:
[legend]
Collaboration diagram for amr_wind::mms::MMS:
[legend]

Public Member Functions

 MMS (const CFDSim &sim)
 
 ~MMS () override=default
 
void initialize_fields (int level, const amrex::Geometry &geom) override
 
void fill_src ()
 
amrex::Real compute_error (const int comp, const Field &field, FuncDef f)
 
void post_init_actions () override
 
void post_regrid_actions () override
 
void pre_advance_work () override
 
void post_advance_work () override
 

Static Public Member Functions

static std::string identifier ()
 

Private Attributes

const amr_wind::SimTimem_time
 
const FieldRepom_repo
 
const amrex::AmrCore & m_mesh
 
Fieldm_velocity
 
Fieldm_density
 
Fieldm_mms_vel_source
 
const int m_w = 18
 
const std::string m_output_fname = "mms.log"
 
std::unordered_map< std::string, amrex::Real > m_params_map
 

Detailed Description

Method of manufactured solutions physics

Constructor & Destructor Documentation

◆ MMS()

amr_wind::mms::MMS::MMS ( const CFDSim & sim)
explicit

◆ ~MMS()

amr_wind::mms::MMS::~MMS ( )
overridedefault

Member Function Documentation

◆ compute_error()

amrex::Real amr_wind::mms::MMS::compute_error ( const int comp,
const Field & field,
FuncDef f )

◆ fill_src()

void amr_wind::mms::MMS::fill_src ( )

Fill the MMS source term.

◆ identifier()

static std::string amr_wind::mms::MMS::identifier ( )
inlinestatic

◆ initialize_fields()

void amr_wind::mms::MMS::initialize_fields ( int level,
const amrex::Geometry & geom )
override

Initialize the velocity and density fields at the beginning of the simulation.

See also
amr_wind::MMSFieldInit

◆ post_advance_work()

void amr_wind::mms::MMS::post_advance_work ( )
override

◆ post_init_actions()

void amr_wind::mms::MMS::post_init_actions ( )
override

◆ post_regrid_actions()

void amr_wind::mms::MMS::post_regrid_actions ( )
override

◆ pre_advance_work()

void amr_wind::mms::MMS::pre_advance_work ( )
inlineoverride

Member Data Documentation

◆ m_density

Field& amr_wind::mms::MMS::m_density
private

◆ m_mesh

const amrex::AmrCore& amr_wind::mms::MMS::m_mesh
private

◆ m_mms_vel_source

Field& amr_wind::mms::MMS::m_mms_vel_source
private

◆ m_output_fname

const std::string amr_wind::mms::MMS::m_output_fname = "mms.log"
private

◆ m_params_map

std::unordered_map<std::string, amrex::Real> amr_wind::mms::MMS::m_params_map
private
Initial value:
= {
{"a", 1.05}, {"b", 2.15}, {"c", -3.2}, {"d", 10.1},
{"beta", 2.2}, {"gamma", 2.4}, {"delta", 2.0}, {"kx", 1.0},
{"ky", 1.0}, {"kz", 1.0}, {"nu", 1.0}}

◆ m_repo

const FieldRepo& amr_wind::mms::MMS::m_repo
private

◆ m_time

const amr_wind::SimTime& amr_wind::mms::MMS::m_time
private

◆ m_velocity

Field& amr_wind::mms::MMS::m_velocity
private

◆ m_w

const int amr_wind::mms::MMS::m_w = 18
private

The documentation for this class was generated from the following files:
  • /home/runner/work/amr-wind/amr-wind/amr-wind/physics/mms/MMS.H
  • /home/runner/work/amr-wind/amr-wind/amr-wind/physics/mms/MMS.cpp