WarpX
Toggle main menu visibility
Loading...
Searching...
No Matches
Source
Initialization
VelocityProperties.H
Go to the documentation of this file.
1
/* Copyright 2021 Hannah Klion
2
*
3
* This file is part of WarpX.
4
*
5
* License: BSD-3-Clause-LBNL
6
*/
7
8
#ifndef WARPX_VELOCITY_PROPERTIES_H_
9
#define WARPX_VELOCITY_PROPERTIES_H_
10
11
#include <
AMReX_ParmParse.H
>
12
#include <
AMReX_Parser.H
>
13
#include <
AMReX_REAL.H
>
14
15
/* Type of velocity initialization. Used by VelocityProperties and GetVelocityVector. */
16
enum
VelocityInitType
{
VelConstantVector
,
VelParserFunctionVector
};
17
25
struct
VelocityProperties
26
{
38
VelocityProperties
(
const
amrex::ParmParse
&
pp
, std::string
const
& source_name);
39
40
/* Type of velocity initialization */
41
VelocityInitType
m_type
;
42
43
/* Mean velocity components for velocity vector, if m_type == VelConstantVector */
44
amrex::Real
m_ux_mean
{0.0},
m_uy_mean
{0.0},
m_uz_mean
{0.0};
45
/* Storage of the parser functions for velocity vector, if m_type == VelParserFunctionVector */
46
std::unique_ptr<amrex::Parser>
m_ptr_ux_mean_parser
,
m_ptr_uy_mean_parser
,
m_ptr_uz_mean_parser
;
47
};
48
49
#endif
//WARPX_VELOCITY_PROPERTIES_H_
pp
amrex::ParmParse pp
AMReX_ParmParse.H
AMReX_Parser.H
AMReX_REAL.H
VelocityInitType
VelocityInitType
Definition
VelocityProperties.H:16
VelParserFunctionVector
@ VelParserFunctionVector
Definition
VelocityProperties.H:16
VelConstantVector
@ VelConstantVector
Definition
VelocityProperties.H:16
amrex::ParmParse
amrex::Real
amrex_real Real
VelocityProperties::m_ptr_uy_mean_parser
std::unique_ptr< amrex::Parser > m_ptr_uy_mean_parser
Definition
VelocityProperties.H:46
VelocityProperties::m_ptr_ux_mean_parser
std::unique_ptr< amrex::Parser > m_ptr_ux_mean_parser
Definition
VelocityProperties.H:46
VelocityProperties::m_uz_mean
amrex::Real m_uz_mean
Definition
VelocityProperties.H:44
VelocityProperties::VelocityProperties
VelocityProperties(const amrex::ParmParse &pp, std::string const &source_name)
Read runtime parameters to populate constant or spatially-varying velocity information.
Definition
VelocityProperties.cpp:66
VelocityProperties::m_ux_mean
amrex::Real m_ux_mean
Definition
VelocityProperties.H:44
VelocityProperties::m_type
VelocityInitType m_type
Definition
VelocityProperties.H:41
VelocityProperties::m_uy_mean
amrex::Real m_uy_mean
Definition
VelocityProperties.H:44
VelocityProperties::m_ptr_uz_mean_parser
std::unique_ptr< amrex::Parser > m_ptr_uz_mean_parser
Definition
VelocityProperties.H:46
Generated by
1.17.0