TwoPhaseTransport Class Reference

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

#include <TwoPhaseTransport.H>

Inheritance diagram for amr_wind::transport::TwoPhaseTransport:
[legend]
Collaboration diagram for amr_wind::transport::TwoPhaseTransport:
[legend]

Public Member Functions

 TwoPhaseTransport (CFDSim &sim)
 
 ~TwoPhaseTransport () override=default
 
amrex::Real laminar_prandtl1 () const
 
amrex::Real laminar_prandtl2 () const
 
amrex::Real turbulent_prandtl () const
 
std::unique_ptr< ScratchFieldmu () override
 Return the dynamic visocity field.
 
std::unique_ptr< ScratchFieldalpha () override
 Return the thermal diffusivity field (later divided by density, though)
 
std::unique_ptr< ScratchFieldscalar_diffusivity (const std::string &scalar_name) override
 Scalar diffusivity based on Schmidt number.
 
- Public Member Functions inherited from amr_wind::transport::TransportModel
virtual ~TransportModel ()=default
 

Static Public Member Functions

static std::string identifier ()
 
static amrex::Real laminar_schmidt (const std::string &scalar_name)
 
static amrex::Real turbulent_schmidt (const std::string &scalar_name)
 

Static Public Attributes

static constexpr bool constant_properties = false
 

Private Attributes

CFDSimm_sim
 Reference to the CFD sim.
 
FieldRepom_repo
 Reference to the field repository (for creating scratch fields)
 
InterfaceCapturingMethod m_ifacetype
 Interface capturing method variable.
 
amrex::Real m_mu1 {1.0e-3}
 Phase 1 (liquid) dynamic molecular viscosity.
 
amrex::Real m_mu2 {1.0e-5}
 Phase 2 (gas) dynamic molecular viscosity.
 
amrex::Real m_Pr1 {7.2}
 Phase 1 (liquid) Prandtl number.
 
amrex::Real m_Pr2 {0.7}
 Phase 2 (gas) Prandtl number.
 
amrex::Real m_Prt {1.0}
 Turbulent Prandtl number.
 

Detailed Description

Two-phase fluid transport model with piece-wise constant properties

Constructor & Destructor Documentation

◆ TwoPhaseTransport()

amr_wind::transport::TwoPhaseTransport::TwoPhaseTransport ( CFDSim & sim)
inlineexplicit

◆ ~TwoPhaseTransport()

amr_wind::transport::TwoPhaseTransport::~TwoPhaseTransport ( )
overridedefault

Member Function Documentation

◆ alpha()

std::unique_ptr< ScratchField > amr_wind::transport::TwoPhaseTransport::alpha ( )
inlineoverridevirtual

Return the thermal diffusivity field (later divided by density, though)

Implements amr_wind::transport::TransportModel.

◆ identifier()

static std::string amr_wind::transport::TwoPhaseTransport::identifier ( )
inlinestatic

◆ laminar_prandtl1()

amrex::Real amr_wind::transport::TwoPhaseTransport::laminar_prandtl1 ( ) const
inline

◆ laminar_prandtl2()

amrex::Real amr_wind::transport::TwoPhaseTransport::laminar_prandtl2 ( ) const
inline

◆ laminar_schmidt()

static amrex::Real amr_wind::transport::TwoPhaseTransport::laminar_schmidt ( const std::string & scalar_name)
inlinestatic

◆ mu()

std::unique_ptr< ScratchField > amr_wind::transport::TwoPhaseTransport::mu ( )
inlineoverridevirtual

Return the dynamic visocity field.

Implements amr_wind::transport::TransportModel.

◆ scalar_diffusivity()

std::unique_ptr< ScratchField > amr_wind::transport::TwoPhaseTransport::scalar_diffusivity ( const std::string & scalar_name)
inlineoverridevirtual

Scalar diffusivity based on Schmidt number.

Implements amr_wind::transport::TransportModel.

◆ turbulent_prandtl()

amrex::Real amr_wind::transport::TwoPhaseTransport::turbulent_prandtl ( ) const
inline

◆ turbulent_schmidt()

static amrex::Real amr_wind::transport::TwoPhaseTransport::turbulent_schmidt ( const std::string & scalar_name)
inlinestatic

Member Data Documentation

◆ constant_properties

bool amr_wind::transport::TwoPhaseTransport::constant_properties = false
staticconstexpr

◆ m_ifacetype

InterfaceCapturingMethod amr_wind::transport::TwoPhaseTransport::m_ifacetype
private

Interface capturing method variable.

◆ m_mu1

amrex::Real amr_wind::transport::TwoPhaseTransport::m_mu1 {1.0e-3}
private

Phase 1 (liquid) dynamic molecular viscosity.

◆ m_mu2

amrex::Real amr_wind::transport::TwoPhaseTransport::m_mu2 {1.0e-5}
private

Phase 2 (gas) dynamic molecular viscosity.

◆ m_Pr1

amrex::Real amr_wind::transport::TwoPhaseTransport::m_Pr1 {7.2}
private

Phase 1 (liquid) Prandtl number.

◆ m_Pr2

amrex::Real amr_wind::transport::TwoPhaseTransport::m_Pr2 {0.7}
private

Phase 2 (gas) Prandtl number.

◆ m_Prt

amrex::Real amr_wind::transport::TwoPhaseTransport::m_Prt {1.0}
private

Turbulent Prandtl number.

◆ m_repo

FieldRepo& amr_wind::transport::TwoPhaseTransport::m_repo
private

Reference to the field repository (for creating scratch fields)

◆ m_sim

CFDSim& amr_wind::transport::TwoPhaseTransport::m_sim
private

Reference to the CFD sim.


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