Peano
Loading...
Searching...
No Matches
taylor-green-vortex Namespace Reference

Variables

str initial_conditions
 
str boundary_conditions
 
str refinement_criterion
 
str analytical_solution
 
 parser = exahype2.ArgumentParser("ExaHyPE 2 - Finite Volumes Testing Script")
 
 min_depth
 
 degrees_of_freedom
 
 number_of_snapshots
 
 periodic_boundary_conditions_x
 
 periodic_boundary_conditions_y
 
 periodic_boundary_conditions_z
 
 args = parser.parse_args()
 
list size = [2 * 3.14159265359, 2 * 3.14159265359, 2 * 3.14159265359]
 
float max_h = 1.1 * min(size) / (3.0**args.min_depth)
 
float min_h = max_h * 3.0 ** (-args.amr_levels)
 
 fv_solver
 
 max_eigenvalue
 
 flux
 
 limiter
 
 error_measurement_implementation
 
 output_file_name
 
 project
 
float time_in_between_plots = 0.0
 
 dimensions
 
 offset
 
 min_end_time
 
 max_end_time
 
 first_plot_time_stamp
 
 periodic_BC
 
 mode
 
 make
 
 True
 
 make_clean_first
 
 throw_away_data_after_build
 

Variable Documentation

◆ analytical_solution

str taylor-green-vortex.analytical_solution
Initial value:
1= """
2 constexpr double Viscosity = 1.0;
3 const double C = 100.0 / GAMMA;
4
5 // Time decay factors for velocity and pressure
6 const double expVelocityFactor = std::exp(-2.0 * Viscosity * t); // Time decay factor for velocity
7 const double expPressureFactor = std::exp(-4.0 * Viscosity * t); // Time decay factor for pressure
8
9 // Set the initial conditions for the Taylor-Green vortex
10 solution[Shortcuts::rho] = 1.0; // Constant density
11
12 // Velocity components with time decay
13 solution[Shortcuts::rhoU + 0] = expVelocityFactor * std::sin(x(0)) * std::cos(x(1));
14 solution[Shortcuts::rhoU + 1] = -expVelocityFactor * std::cos(x(0)) * std::sin(x(1));
15#if DIMENSIONS == 3
16 solution[Shortcuts::rhoU + 2] = 0.0;
17#endif
18
19 // Pressure with time decay and the given formula
20 double pressure = expPressureFactor * (std::cos(2.0 * x(0)) + std::cos(2.0 * x(1)))*(1.0 / 4.0) + C;
21
22 // Total energy: internal energy + kinetic energy
23 solution[Shortcuts::rhoE] = pressure / (GAMMA - 1.0) + 0.5 * (Q[Shortcuts::rhoU + 0] * Q[Shortcuts::rhoU + 0] + Q[Shortcuts::rhoU + 1] * Q[Shortcuts::rhoU + 1]);
24"""

Definition at line 32 of file taylor-green-vortex.py.

◆ args

taylor-green-vortex.args = parser.parse_args()

Definition at line 66 of file taylor-green-vortex.py.

◆ boundary_conditions

taylor-green-vortex.boundary_conditions
Initial value:
1= """
2"""

Definition at line 24 of file taylor-green-vortex.py.

◆ degrees_of_freedom

taylor-green-vortex.degrees_of_freedom

Definition at line 60 of file taylor-green-vortex.py.

◆ dimensions

taylor-green-vortex.dimensions

Definition at line 116 of file taylor-green-vortex.py.

◆ error_measurement_implementation

taylor-green-vortex.error_measurement_implementation

Definition at line 97 of file taylor-green-vortex.py.

◆ first_plot_time_stamp

taylor-green-vortex.first_plot_time_stamp

Definition at line 121 of file taylor-green-vortex.py.

◆ flux

taylor-green-vortex.flux

Definition at line 89 of file taylor-green-vortex.py.

◆ fv_solver

taylor-green-vortex.fv_solver
Initial value:
1= exahype2.solvers.fv.musclhancock.GlobalAdaptiveTimeStep(
2 name="FVSolver",
3 patch_size=args.degrees_of_freedom,
4 unknowns={"rho": 1, "rhoU": args.dimensions, "rhoE": 1},
5 auxiliary_variables=0,
6 min_volume_h=min_h,
7 max_volume_h=max_h,
8 time_step_relaxation=0.5,
9 use_enclave_tasking=args.enclave_tasking,
10 number_of_enclave_tasks=args.ntasks,
11)

Definition at line 72 of file taylor-green-vortex.py.

◆ initial_conditions

taylor-green-vortex.initial_conditions
Initial value:
1= """
2 constexpr double U0 = 1.0; // Initial amplitude of velocity
3 constexpr double Pressure0 = 100 / GAMMA; // Reference pressure
4
5 Q[Shortcuts::rho] = 1.0;
6 Q[Shortcuts::rhoU + 0] = U0 * std::sin(x(0)) * std::cos(x(1));
7 Q[Shortcuts::rhoU + 1] = -U0 * std::cos(x(0)) * std::sin(x(1));
8#if DIMENSIONS == 3
9 Q[Shortcuts::rhoU + 2] = 0.0;
10#endif
11
12 const double pressure = Pressure0 + (Q[Shortcuts::rho] * U0) * (1.0 / 4.0) * (std::cos(2.0 * x(0)) + std::cos(2.0 * x(1)));
13 // Total energy: internal energy + kinetic energy
14 Q[Shortcuts::rhoE] = pressure / (GAMMA - 1.0) + 0.5 * (Q[Shortcuts::rhoU + 0] * Q[Shortcuts::rhoU + 0] + Q[Shortcuts::rhoU + 1] * Q[Shortcuts::rhoU + 1]);
15"""

Definition at line 8 of file taylor-green-vortex.py.

◆ limiter

taylor-green-vortex.limiter

Definition at line 90 of file taylor-green-vortex.py.

◆ make

taylor-green-vortex.make

Definition at line 137 of file taylor-green-vortex.py.

◆ make_clean_first

taylor-green-vortex.make_clean_first

Definition at line 137 of file taylor-green-vortex.py.

◆ max_eigenvalue

taylor-green-vortex.max_eigenvalue

Definition at line 88 of file taylor-green-vortex.py.

◆ max_end_time

taylor-green-vortex.max_end_time

Definition at line 120 of file taylor-green-vortex.py.

◆ max_h

float taylor-green-vortex.max_h = 1.1 * min(size) / (3.0**args.min_depth)

Definition at line 69 of file taylor-green-vortex.py.

◆ min_depth

taylor-green-vortex.min_depth

Definition at line 59 of file taylor-green-vortex.py.

◆ min_end_time

taylor-green-vortex.min_end_time

Definition at line 119 of file taylor-green-vortex.py.

◆ min_h

float taylor-green-vortex.min_h = max_h * 3.0 ** (-args.amr_levels)

Definition at line 70 of file taylor-green-vortex.py.

◆ mode

taylor-green-vortex.mode

Definition at line 133 of file taylor-green-vortex.py.

◆ number_of_snapshots

taylor-green-vortex.number_of_snapshots

Definition at line 61 of file taylor-green-vortex.py.

◆ offset

taylor-green-vortex.offset

Definition at line 118 of file taylor-green-vortex.py.

◆ output_file_name

taylor-green-vortex.output_file_name

Definition at line 98 of file taylor-green-vortex.py.

◆ parser

taylor-green-vortex.parser = exahype2.ArgumentParser("ExaHyPE 2 - Finite Volumes Testing Script")

Definition at line 57 of file taylor-green-vortex.py.

◆ periodic_BC

taylor-green-vortex.periodic_BC

Definition at line 123 of file taylor-green-vortex.py.

◆ periodic_boundary_conditions_x

taylor-green-vortex.periodic_boundary_conditions_x

Definition at line 62 of file taylor-green-vortex.py.

◆ periodic_boundary_conditions_y

taylor-green-vortex.periodic_boundary_conditions_y

Definition at line 63 of file taylor-green-vortex.py.

◆ periodic_boundary_conditions_z

taylor-green-vortex.periodic_boundary_conditions_z

Definition at line 64 of file taylor-green-vortex.py.

◆ project

taylor-green-vortex.project
Initial value:
1= exahype2.Project(
2 namespace=["tests", "exahype2", "fv"],
3 project_name="TaylorGreenVortex",
4 directory=".",
5 executable="ExaHyPE",
6)

Definition at line 101 of file taylor-green-vortex.py.

◆ refinement_criterion

taylor-green-vortex.refinement_criterion
Initial value:
1= """
2 auto result = ::exahype2::RefinementCommand::Keep;
3 return result;
4"""

Definition at line 27 of file taylor-green-vortex.py.

◆ size

taylor-green-vortex.size = [2 * 3.14159265359, 2 * 3.14159265359, 2 * 3.14159265359]

Definition at line 68 of file taylor-green-vortex.py.

◆ throw_away_data_after_build

taylor-green-vortex.throw_away_data_after_build

Definition at line 137 of file taylor-green-vortex.py.

◆ time_in_between_plots

taylor-green-vortex.time_in_between_plots = 0.0

Definition at line 110 of file taylor-green-vortex.py.

◆ True

taylor-green-vortex.True

Definition at line 137 of file taylor-green-vortex.py.