KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Mac Donald's shock benchmark. More...
Public Member Functions | |
def | __init__ (self, model, settings) |
Constructor of the benchmark. More... | |
def | Check (self) |
This method checks if the input values have physical sense. More... | |
def | ExecuteInitialize (self) |
This method sets the topography, the initial conditions and the upstream/downstream boundary conditions. More... | |
Public Attributes | |
n | |
q | |
g | |
x0 | |
x100 | |
h0 | |
h100 | |
list_of_bc_processes | |
upstream_settings | |
downstream_settings | |
Mac Donald's shock benchmark.
This is a Mac Donald's type solution with a smooth transition and a shock in a short domain, with Manning's friction coefficient. The length of the channel is 100m and the discharge at steady state is q=2m^2/s. The flow is fluvial both upstream and downstream, the boundary conditions are fixed as follows: - upstream: q=2m^2/s - downstream: h=h_ex(100) This process sets the upstream and downstream boundary conditions. O. Delestre, C. Lucas, P.-A. Ksinant, F. Darboux, C. Laguerre, T.N.T. Vo, F. James, S. Cordier SWASHES: a compilation of Shallow Water Analytic Solutions for Hydraulic and Environmental Studies International Journal for Numerical Methods in Fluids, Wiley, 2013, 72 (3), pp.269-300.
def mac_donald_shock_benchmark.MacDonaldShockBenchmark.__init__ | ( | self, | |
model, | |||
settings | |||
) |
Constructor of the benchmark.
The base class validates the settings and sets the model_part, the variables and the benchmark_settings
def mac_donald_shock_benchmark.MacDonaldShockBenchmark.Check | ( | self | ) |
This method checks if the input values have physical sense.
def mac_donald_shock_benchmark.MacDonaldShockBenchmark.ExecuteInitialize | ( | self | ) |
This method sets the topography, the initial conditions and the upstream/downstream boundary conditions.
mac_donald_shock_benchmark.MacDonaldShockBenchmark.downstream_settings |
mac_donald_shock_benchmark.MacDonaldShockBenchmark.g |
mac_donald_shock_benchmark.MacDonaldShockBenchmark.h0 |
mac_donald_shock_benchmark.MacDonaldShockBenchmark.h100 |
mac_donald_shock_benchmark.MacDonaldShockBenchmark.list_of_bc_processes |
mac_donald_shock_benchmark.MacDonaldShockBenchmark.n |
mac_donald_shock_benchmark.MacDonaldShockBenchmark.q |
mac_donald_shock_benchmark.MacDonaldShockBenchmark.upstream_settings |
mac_donald_shock_benchmark.MacDonaldShockBenchmark.x0 |
mac_donald_shock_benchmark.MacDonaldShockBenchmark.x100 |