/home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/WaveEnergy.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Loading...
Searching...
No Matches
WaveEnergy.H
Go to the documentation of this file.
Definition CFDSim.H:47
Definition Field.H:116
Definition WaveEnergy.H:30
std::string m_out_fname
filename for ASCII output
Definition WaveEnergy.H:95
~WaveEnergy() override
int m_out_freq
Frequency of data sampling and output.
Definition WaveEnergy.H:98
amrex::Real m_escl
volumetric scaling for each energy
Definition WaveEnergy.H:92
int m_width
width in ASCII output
Definition WaveEnergy.H:101
amrex::Real m_wave_kinetic_energy
store the total wave energy
Definition WaveEnergy.H:68
virtual void prepare_ascii_file()
prepare ASCII file and directory
Definition WaveEnergy.cpp:183
void initialize() override
Read user inputs and get information needed for calculations.
Definition WaveEnergy.cpp:21
amrex::Real m_pe_off
offset for potential energy calculation
Definition WaveEnergy.H:90
void wave_energy(amrex::Real &ke, amrex::Real &pe) const
Output private variables that store energy measurements.
Definition WaveEnergy.H:54
void post_advance_work() override
Integrate energy components and output to file.
Definition WaveEnergy.cpp:167
CFDSim & m_sim
Reference to the CFD sim.
Definition WaveEnergy.H:72
const Field & m_vof
reference to vof
Definition WaveEnergy.H:84
void post_regrid_actions() override
Definition WaveEnergy.H:47
amrex::Vector< amrex::Real > m_gravity
gravity vector
Definition WaveEnergy.H:87
const Field & m_velocity
reference to velocity
Definition WaveEnergy.H:82
static std::string identifier()
Definition WaveEnergy.H:32
amrex::Real calculate_kinetic_energy()
Calculate the sum of stated energy in liquid phase.
Definition WaveEnergy.cpp:47
WaveEnergy(CFDSim &, std::string)
Definition WaveEnergy.cpp:12
void pre_init_actions() override
Perform actions before mesh is created.
Definition WaveEnergy.H:39
virtual void write_ascii()
Output sampled data in ASCII format.
Definition WaveEnergy.cpp:200
amrex::Real calculate_potential_energy()
Definition WaveEnergy.cpp:103
int m_precision
precision in ASCII output
Definition WaveEnergy.H:104
amrex::Real m_wave_potential_energy
Definition WaveEnergy.H:69
Definition WaveEnergy.cpp:10
Generated by 1.12.0