MultiPhase Class Reference

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

#include <MultiPhase.H>

Inheritance diagram for amr_wind::MultiPhase:
[legend]
Collaboration diagram for amr_wind::MultiPhase:
[legend]

Public Member Functions

 MultiPhase (CFDSim &sim)
 
 ~MultiPhase () override=default
 
void initialize_fields (int, const amrex::Geometry &) override
 
void post_init_actions () override
 
void post_regrid_actions () override
 
void pre_advance_work () override
 
void post_advance_work () override
 
void set_density_via_levelset ()
 
void set_density_via_vof (amr_wind::FieldState fstate=amr_wind::FieldState::New)
 
void set_nph_density ()
 
void calculate_advected_facedensity ()
 
void levelset2vof ()
 
void levelset2vof (const IntField &iblank_cell, ScratchField &vof_scr)
 
void favre_filtering ()
 
amrex::Real volume_fraction_sum ()
 
amrex::Real momentum_sum (int n)
 
InterfaceCapturingMethod interface_capturing_method ()
 
amrex::Real rho1 () const
 
amrex::Real rho2 () const
 
amrex::Vector< amrex::Real > gravity () const
 
amrex::Real water_level () const
 
bool perturb_pressure () const
 
bool reconstruct_true_pressure () const
 

Static Public Member Functions

static std::string identifier ()
 

Private Attributes

const CFDSimm_sim
 
Fieldm_velocity
 
Fieldm_density
 
Fieldm_levelset {nullptr}
 
Fieldm_vof {nullptr}
 
amrex::Real m_rho1 {10.0}
 
amrex::Real m_rho2 {1.0}
 
bool m_use_perturb_pressure {false}
 
bool m_reconstruct_true_pressure {false}
 
amrex::Real m_water_level0 {0.0}
 
amrex::Vector< amrex::Real > m_gravity {0.0, 0.0, -9.81}
 
bool m_interface_smoothing {false}
 
int m_smooth_freq {10}
 
std::string m_interface_model {"vof"}
 
InterfaceCapturingMethod m_interface_capturing_method
 
int m_verbose {0}
 
amrex::Real m_total_volfrac {0.0}
 
amrex::Real m_q0 {0.0}
 
amrex::Real m_q1 {0.0}
 
amrex::Real m_q2 {0.0}
 
amrex::Real m_sumvof0 {0.0}
 

Constructor & Destructor Documentation

◆ MultiPhase()

amr_wind::MultiPhase::MultiPhase ( CFDSim & sim)
explicit

◆ ~MultiPhase()

amr_wind::MultiPhase::~MultiPhase ( )
overridedefault

Member Function Documentation

◆ calculate_advected_facedensity()

void amr_wind::MultiPhase::calculate_advected_facedensity ( )

◆ favre_filtering()

void amr_wind::MultiPhase::favre_filtering ( )

◆ gravity()

amrex::Vector< amrex::Real > amr_wind::MultiPhase::gravity ( ) const
inline

◆ identifier()

static std::string amr_wind::MultiPhase::identifier ( )
inlinestatic

◆ initialize_fields()

void amr_wind::MultiPhase::initialize_fields ( int ,
const amrex::Geometry &  )
inlineoverride

◆ interface_capturing_method()

InterfaceCapturingMethod amr_wind::MultiPhase::interface_capturing_method ( )

◆ levelset2vof() [1/2]

void amr_wind::MultiPhase::levelset2vof ( )

◆ levelset2vof() [2/2]

void amr_wind::MultiPhase::levelset2vof ( const IntField & iblank_cell,
ScratchField & vof_scr )

◆ momentum_sum()

amrex::Real amr_wind::MultiPhase::momentum_sum ( int n)

◆ perturb_pressure()

bool amr_wind::MultiPhase::perturb_pressure ( ) const
inline

◆ post_advance_work()

void amr_wind::MultiPhase::post_advance_work ( )
override

◆ post_init_actions()

void amr_wind::MultiPhase::post_init_actions ( )
override

◆ post_regrid_actions()

void amr_wind::MultiPhase::post_regrid_actions ( )
override

◆ pre_advance_work()

void amr_wind::MultiPhase::pre_advance_work ( )
override

◆ reconstruct_true_pressure()

bool amr_wind::MultiPhase::reconstruct_true_pressure ( ) const
inline

◆ rho1()

amrex::Real amr_wind::MultiPhase::rho1 ( ) const
inline

◆ rho2()

amrex::Real amr_wind::MultiPhase::rho2 ( ) const
inline

◆ set_density_via_levelset()

void amr_wind::MultiPhase::set_density_via_levelset ( )

◆ set_density_via_vof()

void amr_wind::MultiPhase::set_density_via_vof ( amr_wind::FieldState fstate = amr_wind::FieldState::New)

◆ set_nph_density()

void amr_wind::MultiPhase::set_nph_density ( )

◆ volume_fraction_sum()

amrex::Real amr_wind::MultiPhase::volume_fraction_sum ( )

◆ water_level()

amrex::Real amr_wind::MultiPhase::water_level ( ) const
inline

Member Data Documentation

◆ m_density

Field& amr_wind::MultiPhase::m_density
private

◆ m_gravity

amrex::Vector<amrex::Real> amr_wind::MultiPhase::m_gravity {0.0, 0.0, -9.81}
private

◆ m_interface_capturing_method

InterfaceCapturingMethod amr_wind::MultiPhase::m_interface_capturing_method
private

◆ m_interface_model

std::string amr_wind::MultiPhase::m_interface_model {"vof"}
private

◆ m_interface_smoothing

bool amr_wind::MultiPhase::m_interface_smoothing {false}
private

◆ m_levelset

Field* amr_wind::MultiPhase::m_levelset {nullptr}
private

◆ m_q0

amrex::Real amr_wind::MultiPhase::m_q0 {0.0}
private

◆ m_q1

amrex::Real amr_wind::MultiPhase::m_q1 {0.0}
private

◆ m_q2

amrex::Real amr_wind::MultiPhase::m_q2 {0.0}
private

◆ m_reconstruct_true_pressure

bool amr_wind::MultiPhase::m_reconstruct_true_pressure {false}
private

◆ m_rho1

amrex::Real amr_wind::MultiPhase::m_rho1 {10.0}
private

◆ m_rho2

amrex::Real amr_wind::MultiPhase::m_rho2 {1.0}
private

◆ m_sim

const CFDSim& amr_wind::MultiPhase::m_sim
private

◆ m_smooth_freq

int amr_wind::MultiPhase::m_smooth_freq {10}
private

◆ m_sumvof0

amrex::Real amr_wind::MultiPhase::m_sumvof0 {0.0}
private

◆ m_total_volfrac

amrex::Real amr_wind::MultiPhase::m_total_volfrac {0.0}
private

◆ m_use_perturb_pressure

bool amr_wind::MultiPhase::m_use_perturb_pressure {false}
private

◆ m_velocity

Field& amr_wind::MultiPhase::m_velocity
private

◆ m_verbose

int amr_wind::MultiPhase::m_verbose {0}
private

◆ m_vof

Field* amr_wind::MultiPhase::m_vof {nullptr}
private

◆ m_water_level0

amrex::Real amr_wind::MultiPhase::m_water_level0 {0.0}
private

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