Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Functions | Variables
SedovTaylor.cpp File Reference

Sod tube analytical solution adapted from a script of Leodasce Sewanou. More...

#include "shamphys/SedovTaylor.hpp"
#include <array>
#include <cstddef>
#include <limits>
#include "sedov_soluce_arrays.hpp"
+ Include dependency graph for SedovTaylor.cpp:

Go to the source code of this file.

Functions

template<typename T , typename arr_t >
std::array< size_t, 2 > get_closest_range (const arr_t &arr, const T &val, size_t size)
 
template<typename T , typename arr_t >
linear_interpolate (const arr_t &arr_x, const arr_t &arr_y, size_t arr_size, const T &x)
 

Variables

size_t ntheoval = sizeof(r_theo) / sizeof(r_theo[0])
 

Detailed Description

Sod tube analytical solution adapted from a script of Leodasce Sewanou.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file SedovTaylor.cpp.

Function Documentation

◆ get_closest_range()

template<typename T , typename arr_t >
std::array< size_t, 2 > get_closest_range ( const arr_t &  arr,
const T &  val,
size_t  size 
)

Definition at line 22 of file SedovTaylor.cpp.

◆ linear_interpolate()

template<typename T , typename arr_t >
T linear_interpolate ( const arr_t &  arr_x,
const arr_t &  arr_y,
size_t  arr_size,
const T &  x 
)

Definition at line 48 of file SedovTaylor.cpp.

Variable Documentation

◆ ntheoval

size_t ntheoval = sizeof(r_theo) / sizeof(r_theo[0])
inline

Definition at line 74 of file SedovTaylor.cpp.