pyxfem.fluidmechanics.euler1d_finite_volume_1d module

Created on Thu Mar 7 11:17:17 2024

@author: nchevaug

pyxfem.fluidmechanics.euler1d_finite_volume_1d.Cjr_1d(edgescoords)[source]
class pyxfem.fluidmechanics.euler1d_finite_volume_1d.GlassExplicitEuler_Lagrangian1D(x, edges, boundary_conditions, gamma=1.4)[source]

Bases: object

1d gas dynamic Euler equation using a lagrangian mesh

critical_timestep()[source]
load_step(filepath, timestep)[source]
riemannSolver()[source]
save_model(filepath)[source]
save_step(filepath, timestep)[source]
set_initial_state(density, velocity, pressure)[source]

input : density, velocity and pressure are function of x the state of each cell : in array of Ncells line

( mmasse,

mu quantity of movment (impulsion) mE : total energy

)

set_rho_u_p_c()[source]

return density velocity and pressure for each cell

step(dt)[source]
pyxfem.fluidmechanics.euler1d_finite_volume_1d.load1d_fromfile(filepath)[source]
pyxfem.fluidmechanics.euler1d_finite_volume_1d.shock_tube1d(pb='sod', N=50)[source]
pyxfem.fluidmechanics.euler1d_finite_volume_1d.test1d(pb='sod', N=100, animate=True, plot_periode=10)[source]