OWModel< WaveTheoryTrait > Class Template Reference

AMR-Wind API: amr_wind::ocean_waves::OWModel< WaveTheoryTrait > Class Template Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
amr_wind::ocean_waves::OWModel< WaveTheoryTrait > Class Template Reference

#include <OceanWavesModel.H>

Inheritance diagram for amr_wind::ocean_waves::OWModel< WaveTheoryTrait >:
[legend]
Collaboration diagram for amr_wind::ocean_waves::OWModel< WaveTheoryTrait >:
[legend]

Public Member Functions

 OWModel (CFDSim &sim, const std::string &label, const int id)
 
const std::string & label () const override
 Return the unique identifier (name) for this instance.
 
int id () const override
 Return the unique tag (integer ID) for this instance.
 
void read_inputs (const ::amr_wind::utils::MultiParser &pp) override
 
void update_relax_zones () override
 
void apply_relax_zones () override
 
void prepare_outputs (const std::string &out_dir) override
 
void record_regrid_flag () override
 
void reset_regrid_flag () override
 
void write_outputs () override
 
void init_waves (int level, const amrex::Geometry &geom) override
 

Static Public Member Functions

static std::string identifier ()
 

Private Attributes

WaveTheoryTrait::DataType m_data
 Instance that holds all data related to a particular wave type.
 
ops::ProcessOutputsOp< WaveTheoryTrait > m_out_op
 Outputs processor.
 

Detailed Description

template<typename WaveTheoryTrait>
class amr_wind::ocean_waves::OWModel< WaveTheoryTrait >

Concrete implementation of the WaveModel for different wave theories.

Template Parameters
WaveTheoryTraitA wave theory trait that defines the behavior of the different actions (initialization, velocity update, free surface update) that are executed by the WaveModel class through the amr_wind::ocean_waves physics driver class.

Constructor & Destructor Documentation

◆ OWModel()

template<typename WaveTheoryTrait >
amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::OWModel ( CFDSim & sim,
const std::string & label,
const int id )
inline
Parameters
simCFD simulation environment instance
labelUnique string identifier for this instance
idUnique integer tag for this instance

Member Function Documentation

◆ apply_relax_zones()

template<typename WaveTheoryTrait >
void amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::apply_relax_zones ( )
inlineoverride

◆ id()

template<typename WaveTheoryTrait >
int amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::id ( ) const
inlineoverride

Return the unique tag (integer ID) for this instance.

◆ identifier()

template<typename WaveTheoryTrait >
static std::string amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::identifier ( )
inlinestatic

◆ init_waves()

template<typename WaveTheoryTrait >
void amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::init_waves ( int level,
const amrex::Geometry & geom )
inlineoverride

◆ label()

template<typename WaveTheoryTrait >
const std::string & amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::label ( ) const
inlineoverride

Return the unique identifier (name) for this instance.

◆ prepare_outputs()

template<typename WaveTheoryTrait >
void amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::prepare_outputs ( const std::string & out_dir)
inlineoverride

◆ read_inputs()

template<typename WaveTheoryTrait >
void amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::read_inputs ( const ::amr_wind::utils::MultiParser & pp)
inlineoverride

◆ record_regrid_flag()

template<typename WaveTheoryTrait >
void amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::record_regrid_flag ( )
inlineoverride

◆ reset_regrid_flag()

template<typename WaveTheoryTrait >
void amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::reset_regrid_flag ( )
inlineoverride

◆ update_relax_zones()

template<typename WaveTheoryTrait >
void amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::update_relax_zones ( )
inlineoverride

◆ write_outputs()

template<typename WaveTheoryTrait >
void amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::write_outputs ( )
inlineoverride

Member Data Documentation

◆ m_data

template<typename WaveTheoryTrait >
WaveTheoryTrait::DataType amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::m_data
private

Instance that holds all data related to a particular wave type.

◆ m_out_op

template<typename WaveTheoryTrait >
ops::ProcessOutputsOp<WaveTheoryTrait> amr_wind::ocean_waves::OWModel< WaveTheoryTrait >::m_out_op
private

Outputs processor.


The documentation for this class was generated from the following file: