ascl_id stringclasses 752
values | repo_url stringclasses 737
values | file_path stringlengths 4 194 | content large_stringlengths 1 1M | language stringclasses 29
values | license_type stringclasses 24
values | size int64 1 1M |
|---|---|---|---|---|---|---|
[ascl:1904.008] | https://github.com/pcubillos/repack | repack/utils/__init__.py | # Copyright (c) 2017-2021 Patricio Cubillos and contributors.
# repack is open-source software under the MIT license (see LICENSE).
from .utilities import *
from .cutils import *
__all__ = (
utilities.__all__
+ ["flag", "continuum", "flip"]
)
# Clean up top-level namespace--delete everything that isn't in ... | Python | MIT | 565 |
[ascl:1904.008] | https://github.com/pcubillos/repack | repack/utils/cutils.c | // Copyright (c) 2017-2021 Patricio Cubillos and contributors.
// repack is open-source software under the MIT license (see LICENSE).
#include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/arrayobject.h>
#include <math.h>
/* 1D double ndarray: ... | C | MIT | 6,807 |
[ascl:1904.008] | https://github.com/pcubillos/repack | repack/utils/utilities.py | # Copyright (c) 2017-2021 Patricio Cubillos and contributors.
# repack is open-source software under the MIT license (see LICENSE).
__all__ = [
"fopen",
"parse_file",
"read_pf",
"read_states",
"lbl",
"wnbalance",
"count",
"read_iso",
"get_exomol_mol",
"read_lbl",
]
import os
im... | Python | MIT | 18,765 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | README.md | # Overview
RePrimAnd is a support library for numerical simulations of general
relativistic magnetohydrodynamics and other neutron star related
problems, written in C++ (a Python interface is also available)
The full documentation can be found [here](https://wokast.github.io/RePrimAnd/index.html)
## Installation
T... | Markdown | Unknown | 6,311 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | meson_options.txt |
option('build_documentation', type : 'boolean', value : false)
option('build_benchmarks', type : 'boolean', value : false)
option('build_tests', type : 'boolean', value : false)
| Text | Unknown | 179 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | bindings/python/README.md | # What is this?
The pyRePrimAnd package provides a Python interface
for the RePrimAnd C++ library which can be found
[here](https://wokast.github.io/RePrimAnd/index.html).
RePrimAnd is a support library for numerical simulations of general
relativistic magnetohydrodynamics and other neutron star related
problems. R... | Markdown | Unknown | 1,833 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | bindings/python/setup.py | from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension
ext_modules = [
Pybind11Extension(
"pyreprimand",
["pyreprimand.cpp"],
libraries=["RePrimAnd"]
),
]
setup(ext_modules=ext_modules)
| Python | Unknown | 247 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | bindings/python/pyproject.toml | [build-system]
requires = ["setuptools>=42", "wheel", "pybind11>=2.6.1"]
build-backend = "setuptools.build_meta"
[project]
name = "RePrimAnd"
version = "1.6"
authors = [
{ name = "Wolfgang Kastaun", email = "physik@fangwolg.de" }
]
description = "Library for handling equations of state for supranuclea... | TOML | Unknown | 972 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | bindings/python/pyreprimand.cpp | #include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>
#include <boost/format.hpp>
#include <string>
#include <vector>
#include "reprimand/interpol.h"
#include "reprimand/eos_barotropic.h"
#include "reprimand/eos_barotr_file.h"
#include "reprimand/eos_barotr... | C++ | Unknown | 65,479 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | EOS/create/reprimand_eos_format.py | import numpy as np
import h5py
FORMAL_M_BARYON_SI = 1.66E-27 #kg
EOS_FILE_FORMAT_VERSION = 0.1
def eosfile_common_(f5, name, comment, eostype):
"""Write fields common to all EOS types in HDF5 file"""
f5.attrs['format_version'] = EOS_FILE_FORMAT_VERSION
f5.attrs['eos_type'] = eostype
f5.attrs['... | Python | Unknown | 14,441 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | EOS/create/make_read_pp.py | import numpy as np
import pyreprimand as pyr
C_SI = 299792458.0
CGS_DENS = 1e3
CGS_PRESS = 0.1
def prep_sly():
def matching_ds(rho_bnd, ds_j, ga_j, ga_i):
n = 1.0/(ga_i-1.0)
n_j = 1.0/(ga_j-1.0)
et = n / n_j
ds = (ds_j**et) * (rho_bnd**(1.0-et))
return ds
sly_... | Python | Unknown | 3,415 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_barotr.rst | Barotropic EOS
==============
.. toctree::
:maxdepth: 1
eos_barotr_feat
eos_barotr_interf
eos_barotr_available
eos_barotr_files
eos_barotr_custom
eos_barotr_ref
| reStructuredText | Unknown | 192 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/ns_seqs_files.rst | .. _ns_seqs_files:
Sequence Files
--------------
The library defines a hdf5-based file format for storing star sequences and branches.
There is no need for users to deal with those files directly since there is are C++
and Python interfaces for that.
To avoid unit confusion, the files use SI units internally. When... | reStructuredText | Unknown | 1,182 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/installing.rst | Installation
============
The main target and devolpment platform is Linux, although the
library code is not platform-specific and should also work on Macs.
Windows and AIX are not supported. For use in HPC, users need to build
the library from source. For use in postprocessing, the Python interface
can also be insta... | reStructuredText | Unknown | 6,336 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_thermal_custom.rst | Custom EOS
==========
It is easy to implement a custom EOS without modifying the
RePrimAnd library. One simply needs to define a class which
provides the EOS functions. This class needs to be derived
from a generic implementation interface
:cpp:class:`~EOS_Toolkit::implementations::eos_thermal_impl`
and override the ... | reStructuredText | Unknown | 6,287 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_thermal_available.rst | Available EOS
=============
Classical Ideal Gas
-------------------
This EOS serves mainly as a toy model useful for debugging.
It is given by
.. math::
:label: press_idealgas
P (\rho,\epsilon,Y_e) = (\Gamma - 1) \rho \epsilon
The adiabatic exponent :math:`\Gamma = 1 + 1/n` with :math:`n>0`
is a free para... | reStructuredText | Unknown | 3,349 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/tov_solver_ref.rst |
Reference
---------
Computing TOV solutions
^^^^^^^^^^^^^^^^^^^^^^^
Full solution
~~~~~~~~~~~~~
.. doxygenfunction:: EOS_Toolkit::get_tov_star(const eos_barotr eos, const real_t rho_center, const star_accuracy_spec acc)
:project: RePrimAnd
|
Only global properties
~~~~~~~~~~~~~~~~~~~~~~
.. doxygenfunction::... | reStructuredText | Unknown | 1,724 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/index.rst |
RePrimAnd Documentation
=======================
Recovery of Primitives And EOS framework
Overview
--------
`RePrimAnd` is a support library for numerical simulations of general
relativistic magnetohydrodynamics.
It provides methods for recovering primitive variables like pressure
and velocity from the variables ... | reStructuredText | Unknown | 1,944 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_thermal_ref.rst |
Reference
---------
Generic Interface
^^^^^^^^^^^^^^^^^
.. doxygenclass:: EOS_Toolkit::eos_thermal
:project: RePrimAnd
:members:
Loading and Saving EOS
^^^^^^^^^^^^^^^^^^^^^^
.. doxygenfunction:: EOS_Toolkit::load_eos_thermal
:project: RePrimAnd
.. doxygenfunction:: EOS_Toolkit::save_eos_thermal
:proj... | reStructuredText | Unknown | 530 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/ns_seqs.rst | NS Sequences
============
.. toctree::
:maxdepth: 1
ns_seqs_feat
ns_seqs_interf
ns_seqs_files
ns_seqs_ref
| reStructuredText | Unknown | 125 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/c2p_imhd.rst | Primitive Recovery
==================
The core functionality provided by the library is the recovery
of primitive variables from variables evolved in ideal
magnetohydrodynamics. For details of the method we refer to the
article this code belongs to. Here we describe on the provided
functionality and the code interfa... | reStructuredText | Unknown | 407 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_thermal_interf.rst | .. _thermal_interface:
Interface
---------
The EOS with thermal+composition degrees of freedom are represented
by objects of type :cpp:class:`~EOS_Toolkit::eos_thermal`.
These objects
represent the generic EOS interface and do not implement any EOS.
Instead, they forward any request to an actual implementation of... | reStructuredText | Unknown | 3,557 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_thermal_files.rst | EOS Files
=========
The framework contains functions to load thermal EOS from file.
The type of EOS is determined transparently to the user.
For this we defined a file format for thermal EOS, based on HDF5.
Loading EOS
-----------
For loading a thermal EOS from file, use
:cpp:func:`~EOS_Toolkit::load_eos_thermal` as... | reStructuredText | Unknown | 1,548 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/c2p_imhd_feat.rst | Features
--------
The library provides a method to recover primitive variables
:math:`\rho, \epsilon, Y_e, P, v^i, W, E^i` from the evolved
variables :math:`D, \tau, S_i, Y_e^T, B^i` of the conservation-law
formulation of relativistic ideal magnetohydrodynamics.
The code implements exactly the algorithm described in... | reStructuredText | Unknown | 2,977 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/ns_seqs_ref.rst |
Reference
---------
Representation of Sequences
^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. doxygenclass:: EOS_Toolkit::star_seq
:project: RePrimAnd
:members:
|
.. doxygenclass:: EOS_Toolkit::star_branch
:project: RePrimAnd
:members:
Creating star sequences
^^^^^^^^^^^^^^^^^^^^^^^
Computing TOV Sequences
~~~~~~... | reStructuredText | Unknown | 1,561 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/tov_solver.rst | TOV Solver
==========
.. toctree::
:maxdepth: 1
tov_solver_feat
tov_solver_interf
tov_solver_ref
| reStructuredText | Unknown | 113 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_barotr_interf.rst | .. _barotr_interface:
Interface
---------
The barotropic EOS are represented
by objects of type :cpp:class:`~EOS_Toolkit::eos_barotr`.
These objects
represent the generic EOS interface and do not implement any EOS.
Instead, they forward any request to an actual implementation of a
particular EOS. To obtain an
:... | reStructuredText | Unknown | 2,866 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_barotr_ref.rst | Reference
---------
Loading and Saving EOS
^^^^^^^^^^^^^^^^^^^^^^
.. doxygenfunction:: EOS_Toolkit::load_eos_barotr
:project: RePrimAnd
.. doxygenfunction:: EOS_Toolkit::save_eos_barotr
:project: RePrimAnd
Creating EOS from sampled data
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
To create a EOS based on spline interpol... | reStructuredText | Unknown | 2,658 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_barotr_feat.rst |
Features
--------
The library contains different types of one-parametric EOS that can
be accessed through a generic :ref:`interface<barotr_interface>`.
It is quite simple to add custom EOS without modifying the library.
The interface provides the following functions:
* :math:`P(\rho)`
* :math:`\epsilon(\rho)`
* :... | reStructuredText | Unknown | 2,885 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/tov_solver_interf.rst | .. _tov_solver_interface:
Interface
---------
There are two classes to represent spherical neutron stars.
The most important is :cpp:class:`~EOS_Toolkit::spherical_star_properties`,
which collects scalar measures and the EOS. A derived class,
:cpp:class:`~EOS_Toolkit::spherical_star`, additionally provides
the radi... | reStructuredText | Unknown | 3,379 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_barotr_available.rst | Available EOS
=============
.. _EOSPoly:
Polytropic EOS
--------------
In terms of mass density :math:`\rho` or pseudo-enthalpy :math:`g`,
the EOS is given by
.. math::
:label: press_polytrope
P &= \rho_p \left(\frac{\rho}{\rho_p}\right)^\Gamma
= \rho_p \left( \frac{g-1}{1+n} \right)^{1+n} \\
\... | reStructuredText | Unknown | 10,257 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/ns_seqs_interf.rst | .. _ns_seqs_interface:
Interface
---------
There are two classes to represent neutron star sequences.
The basic one is :cpp:class:`~EOS_Toolkit::star_seq`,
which represents sequences with an arbitrary range of central density.
The other is :cpp:class:`~EOS_Toolkit::star_branch`, which represents
a stable branch wh... | reStructuredText | Unknown | 2,328 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/tov_solver_feat.rst | Features
========
The library contains functions for computing properties of spherical neutron stars.
It solves the TOV ODE as well as the ODE for tidal deformability. Models are specified
by central density and the EOS (via the barotropic EOS interface).
Basic support for finding models by mass or the maximum mass mo... | reStructuredText | Unknown | 2,555 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/python_interf.rst | .. _python_interface:
Python Bindings
---------------
The `RePrimAnd` library also provides a Python3 extension module
`pyreprimand` that allows the use of the library from within
Python.
As an added benefit, functions from the C++ interface are vectorized
in the Python interface whenever it makes sense, meaning t... | reStructuredText | Unknown | 6,674 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/ns_seqs_feat.rst | Features
========
The library contains functions for precomputing properties for sequences of
neutron stars and interpolating those to any parameter. Further, the sequences
can be written and loaded from files in a hdf5 based format. Sequences can be
computed using the TOV solver provided by the library, but also cr... | reStructuredText | Unknown | 1,934 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_thermal.rst | Thermal EOS
===========
.. toctree::
:maxdepth: 1
eos_thermal_feat
eos_thermal_interf
eos_thermal_available
eos_thermal_files
eos_thermal_custom
eos_thermal_ref
| reStructuredText | Unknown | 189 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_barotr_custom.rst | Custom EOS
==========
It is easy to implement a custom EOS without modifying the
RePrimAnd library. One simply needs to define a class which
provides the EOS functions. This class needs to be derived
from a generic implementation interface
:cpp:class:`~EOS_Toolkit::implementations::eos_barotr_impl`
and override the v... | reStructuredText | Unknown | 5,086 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_barotr_files.rst | EOS Files
=========
The library defines a file format for barotropic EOS, based on HDF5.
Users should not need to deal with the format directly,
the framework contains functions to load and save barotropic EOS.
The type of EOS is determined while loading transparently to the user.
To avoid unit confusion, the files u... | reStructuredText | Unknown | 2,988 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/c2p_imhd_interf.rst | .. _c2p_imhd_interface:
Interface
---------
The primitive recovery is provided in form of a function object
:cpp:class:`~EOS_Toolkit::con2prim_mhd`
which stores all fixed parameters such as EOS, required accuracy, and
error policies. Once created, it can be used repeatetly as a function
to recover primitives. The ... | reStructuredText | Unknown | 2,377 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/c2p_imhd_ref.rst | Reference
---------
Primitive Recovery
^^^^^^^^^^^^^^^^^^
.. doxygenclass:: EOS_Toolkit::con2prim_mhd
:project: RePrimAnd
:members:
.. doxygenstruct:: EOS_Toolkit::c2p_mhd_report
:project: RePrimAnd
:members:
Primitive Variables
^^^^^^^^^^^^^^^^^^^
.. doxygenstruct:: EOS_Toolkit::prim_vars
:projec... | reStructuredText | Unknown | 759 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/notation.rst | Notation
========
Units
^^^^^
Unless specifically noted, we use geometric units :math:`G=c=1`,
both for documentation and the code internals. Which specific
geometric units to employ is up to the user, e.g. setting
:math:`M_\odot=1`.
All EOS, TOV solver, and primitive recovery code is completely
agnostic to this ch... | reStructuredText | Unknown | 4,070 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/eos_thermal_feat.rst | Features
========
The library contains different types of 3-parametric EOS that can
be accessed through a generic :ref:`interface<thermal_interface>`.
It is quite simple to add custom EOS without modifying the library.
The interface provides the following functions:
* :math:`P(\rho,\epsilon,Y_e)`
* :math:`c_s(\rho... | reStructuredText | Unknown | 1,491 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docsrc/sphinx/little_helpers.rst |
Little Helpers
--------------
Units
^^^^^
.. doxygenclass:: EOS_Toolkit::units
:project: RePrimAnd
:members:
Tensors
^^^^^^^
The library contains classes representing fixed-size tensors (not
tensor fields). The functionality is limited mostly to the needs
of the primitive recovery algorithm, but might also ... | reStructuredText | Unknown | 1,678 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | ET_interface/thorns/RePrimAnd_Global_EOS/src/reprimand_global_eos.h | #ifndef REPRIMAND_GLOBAL_EOS_H
#define REPRIMAND_GLOBAL_EOS_H
#include "reprimand/eos_thermal.h"
#include "reprimand/eos_barotropic.h"
namespace RePrimAnd_Global_EOS {
class global_eos_thermal {
static EOS_Toolkit::eos_thermal eos;
static bool initialized;
public:
static const EOS_Toolkit::eos_thermal& get_... | C/C++ Header | Unknown | 616 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | ET_interface/thorns/RePrimAnd/doc/documentation.tex | % *======================================================================*
% Cactus Thorn template for ThornGuide documentation
% Author: Ian Kelley
% Date: Sun Jun 02, 2002
% $Header$
%
% Thorn documentation in the latex file doc/documentation.tex
% will be included in ThornGuides built with the Cactus make syst... | LaTeX | Unknown | 6,838 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | ET_interface/thorns/RePrimAnd/src/build.sh | #! /bin/bash
################################################################################
# Build
################################################################################
# Set up shell
if [ "$(echo ${VERBOSE} | tr '[:upper:]' '[:lower:]')" = 'yes' ]; then
set -x # Output commands... | Shell | Unknown | 1,599 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | ET_interface/thorns/RePrimAnd/src/detect.sh | #! /bin/bash
################################################################################
# Prepare
################################################################################
# Set up shell
if [ "$(echo ${VERBOSE} | tr '[:upper:]' '[:lower:]')" = 'yes' ]; then
set -x # Output comman... | Shell | Unknown | 2,968 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | ET_interface/thorns/RePrimAnd/src/utils/reprimand_eos_format.py | import numpy as np
import h5py
FORMAL_M_BARYON_SI = 1.66E-27 #kg
EOS_FILE_FORMAT_VERSION = 0.1
def eosfile_common_(f5, name, comment, eostype):
"""Write fields common to all EOS types in HDF5 file"""
f5.attrs['format_version'] = EOS_FILE_FORMAT_VERSION
f5.attrs['eos_type'] = eostype
f5.attrs['... | Python | Unknown | 14,320 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | example/pwpoly_TOV.py | """This example demonstrate the use of the Python bindings of the
RePrimAnd TOV solver and creation of piecewise polytropic EOS on the
fly (not using EOS files).
"""
import pyreprimand as pyr
import numpy as np
import matplotlib
matplotlib.use("AGG")
from matplotlib import pyplot as plt
def get_seq(eos, mgmin=0.5... | Python | Unknown | 2,683 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | tests/benchmarks/src/bench_utils.h | #include <cstddef>
#include <cmath>
template<class T>
struct mapping_linear {
typedef T vtype;
static constexpr T y(T x) { return x;}
static constexpr T x(T y) { return y;}
};
template<class T>
struct mapping_log {
typedef T vtype;
static constexpr T y(T x) { return log(x);}
static constexpr T x(T y) { re... | C/C++ Header | Unknown | 1,385 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | tests/benchmarks/scripts/plot_benchmark.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from stdplt import *
GAUSS_GU = 1.1973228161170991e-20
def plot_perf_zeps(path, eosname, dat_bz, dat_bl):
figname = "perf_eos%s_z_eps" % eosname
with Figure(os.path.join(path, figname)) as fig:
grid = twopanel(fig)
maxit = max... | Python | Unknown | 2,511 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | tests/benchmarks/scripts/stdplt.py | # -*- coding: utf-8 -*-
import os
import warnings
import numpy as np
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
from matplotlib.ticker import AutoMinorLocator
from matplotlib.ticker import ScalarFormatter
from matplotlib.colors import LogNorm
import matplotlib.lines as mlines
from matp... | Python | Unknown | 3,609 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | tests/benchmarks/scripts/plot_accuracy.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from stdplt import *
def plot_acc_zeps(path, eosname, dat_bz, dat_bl):
figname = "acc_eos%s_z_eps" % eosname
dats = [dat_bz, dat_bl]
with Figure(os.path.join(path, figname)) as fig:
grid = twopanel(fig)
clrmap = get_color_map("virid... | Python | Unknown | 2,537 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | tests/src/test_utils.h | #ifndef TEST_UTILS_H
#define TEST_UTILS_H
#include <stdexcept>
#include <string>
#include <cmath>
template<class T>
struct mapping_linear {
typedef T vtype;
static constexpr T y(T x) { return x;}
static constexpr T x(T y) { return y;}
};
template<class T>
struct mapping_log {
typedef T vtype;
static const... | C/C++ Header | Unknown | 2,966 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | tests/src/test_python_eos.py | """This script is run to test that the Python bindings of the
RePrimAnd Barotropic EOS C++ API can be imported and executed."""
import pyreprimand as pyr
import numpy as np
import sys
import pathlib
def allgood(path, eosname="H4_Read_PP"):
fn = path/f"{eosname}.eos.h5"
try:
u = pyr.units.geom_solar... | Python | Unknown | 948 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | tests/src/eos_data_ms1.h |
#include <array>
const std::array<std::array<double,5>, 1447> eos_data_ms1 {{
{9.999999999999998e+03, 4.469206693613614e-08, 2.346770208772004e+13, 4.136688753476278e-08, 7.080340697948748e-08},
{1.023320891297943e+04, 4.529808661501988e-08, 2.434063055270654e+13, 4.192781813775739e-08, 7.176360361364208e-08},
{1.047... | C/C++ Header | Unknown | 169,382 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | tests/src/test_con2prim_mhd.h | #include "test_utils.h"
#include "con2prim_imhd.h"
#include "eos_thermal.h"
#include <boost/format.hpp>
using EOS_Toolkit::eos_thermal;
using EOS_Toolkit::real_t;
using EOS_Toolkit::sm_metric3;
using EOS_Toolkit::sm_tensor1;
using EOS_Toolkit::atmosphere;
using EOS_Toolkit::con2prim_mhd;
using EOS_Toolkit::prim_vars_m... | C/C++ Header | Unknown | 4,552 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | tests/src/test_python_tov.py | """This script is run to test that the Python bindings of the
RePrimAnd TOV solver C++ API can be imported and executed."""
import pyreprimand as pyr
import numpy as np
import sys
import pathlib
def allgood(path, eosname="H4_Read_PP"):
fn = path/f"{eosname}.eos.h5"
try:
u = pyr.units.geom_solar
... | Python | Unknown | 1,501 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | docker/cibw_prepare.sh | #!/bin/sh
set -e
/opt/python/cp39-cp39/bin/python3 -m venv /opt/env_meson
. /opt/env_meson/bin/activate
pip install meson ninja
export BOOST_ROOT=/usr/local
BUILD_DIR=/opt/build/reprimand
INST_DIR=/usr
mkdir -p $BUILD_DIR
cd /project
meson setup --prefix=$INST_DIR -Dbuild_tests=false -Dbuild_benchmarks=false -Dbui... | Shell | Unknown | 400 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/Con2Prim_IMHD/find_roots.h | #ifndef FIND_ROOTS_H
#define FIND_ROOTS_H
#include <boost/math/tools/roots.hpp>
#include <limits>
#include <stdexcept>
#include "intervals.h"
namespace EOS_Toolkit {
enum class ROOTSTAT {
SUCCESS,
NOT_CONVERGED,
NOT_BRACKETED
};
template<class F, class T = typename F::value_t>
auto findroot_using_deriv... | C/C++ Header | Unknown | 3,075 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/Con2Prim_IMHD/include/con2prim_imhd_internals.h | /*! \file con2prim_imhd_internals.h
\brief Internal stuff for primitive recovery algorithm.
*/
#ifndef CON2PRIM_IMHD_IMPL_H
#define CON2PRIM_IMHD_IMPL_H
#include "con2prim_imhd.h"
namespace EOS_Toolkit {
namespace detail {
class rarecase;
class f_rare;
/// Function object representing the root function.
/** This c... | C/C++ Header | Unknown | 5,815 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/Con2Prim_IMHD/include/c2p_report.h | /*! \file c2p_report.h
\brief Class definitions for status of primitive recovery.
*/
#ifndef CON2PRIM_MHD_ERROR_H
#define CON2PRIM_MHD_ERROR_H
#include <string>
#include "config.h"
namespace EOS_Toolkit {
class con2prim_mhd;
namespace detail {class froot;}
///Struct to represent the outcome of a con2prim call.
/**... | C/C++ Header | Unknown | 4,474 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/Con2Prim_IMHD/include/hydro_cons.h | /*! \file hydro_cons.h
\brief Class definitions representing conserved hydrodynamic variables.
*/
#ifndef HYDRO_CONS_H
#define HYDRO_CONS_H
#include "hydro_prim.h"
namespace EOS_Toolkit {
/// Structure to represent conserved variables for pure hydrodynamics.
struct cons_vars {
/// Conserved density \f$ D \f$
re... | C/C++ Header | Unknown | 3,030 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/Con2Prim_IMHD/include/hydro_atmo.h | /*! \file hydro_atmo.h
\brief Class definition representing artificial atmosphere.
*/
#ifndef HYDRO_ATMO_H
#define HYDRO_ATMO_H
#include "hydro_prim.h"
#include "hydro_cons.h"
namespace EOS_Toolkit {
/// Class representing an artificial atmosphere.
struct atmosphere {
/// Rest mass density of the atmosphere.
c... | C/C++ Header | Unknown | 2,287 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/Con2Prim_IMHD/include/hydro_prim.h | /*! \file hydro_prim.h
\brief Class definitions representing primitive hydrodynamic variables.
*/
#ifndef HYDRO_PRIM_H
#define HYDRO_PRIM_H
#include "smtensor.h"
namespace EOS_Toolkit {
/// Structure to represent the primitive hydrodynamic variables.
struct prim_vars {
real_t rho; ///< Rest mass density \f$ ... | C/C++ Header | Unknown | 2,909 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/Con2Prim_IMHD/include/con2prim_imhd.h | /*! \file con2prim_imhd.h
\brief Class definitions for primitive recovery interface.
*/
#ifndef CON2PRIM_IMHD_H
#define CON2PRIM_IMHD_H
#include "smtensor.h"
#include "hydro_prim.h"
#include "hydro_cons.h"
#include "hydro_atmo.h"
#include "c2p_report.h"
#include "eos_thermal.h"
#include <string>
namespace EOS_Toolki... | C/C++ Header | Unknown | 3,248 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Thermal_Idealgas/include/eos_idealgas.h | #ifndef EOS_IDEALGAS_H
#define EOS_IDEALGAS_H
#include "eos_thermal.h"
namespace EOS_Toolkit {
/**\brief Create a classical ideal gas EOS
The parameters are w.r.t EOS units. The EOS units given in the
last parameter are stored for bookkeeping.
@return eos_thermal object representing the ideal gas EOS
@param n ... | C/C++ Header | Unknown | 850 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Thermal_Idealgas/include/eos_idealgas_impl.h | #ifndef EOS_IDEALGAS_IMPL_H
#define EOS_IDEALGAS_IMPL_H
#include "eos_thermal_impl.h"
namespace EOS_Toolkit {
namespace implementations {
///This implements an ideal gas EOS.
/**
\note
The EOS framework includes electron fraction, but here it is ignored
and serves as a dummy parameter.
The temperature is the one ... | C/C++ Header | Unknown | 4,017 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Thermal/include/eos_thermal_internals.h | #ifndef EOS_THERMAL_DETAILS_H
#define EOS_THERMAL_DETAILS_H
#include <memory>
#include "config.h"
#include "intervals.h"
namespace EOS_Toolkit {
class eos_thermal;
namespace implementations {
class eos_thermal_impl;
}
namespace detail {
class eos_thermal_base {
public:
using impl_t = implementations... | C/C++ Header | Unknown | 2,265 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Thermal/include/eos_thermal_impl.h | /*! \file eos_thermal_impl.h
\brief Defines generic API for thermal EOS implementations.
Defines class eos_thermal_impl, the abstract interface from which
all EOS implementations are derived.
*/
#ifndef EOSTHERMAL_IMPL_H
#define EOSTHERMAL_IMPL_H
#include <string>
#include "datastore.h"
#include "eos_thermal.h"
name... | C/C++ Header | Unknown | 5,307 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Thermal/include/eos_thermal_file_impl.h | #ifndef EOS_THERMAL_FILE_IMPL_H
#define EOS_THERMAL_FILE_IMPL_H
#include <string>
#include "global_registry.h"
#include "datastore.h"
#include "eos_thermal.h"
#include "unitconv.h"
namespace EOS_Toolkit {
namespace implementations {
struct reader_eos_thermal {
virtual eos_thermal load(const datasource f,
... | C/C++ Header | Unknown | 553 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Thermal/include/eos_thermal_file.h | #ifndef EOS_THERMAL_FILE_H
#define EOS_THERMAL_FILE_H
#include "eos_thermal.h"
#include "unitconv.h"
#include "datastore.h"
#include <string>
namespace EOS_Toolkit {
/**\brief Load thermal EOS from hdf5 file.
@param fname Filename of EOS file
@param Unit system the returned EOS should use. The unit system needs
... | C/C++ Header | Unknown | 1,043 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Thermal/include/eos_thermal.h | /*! \file eos_thermal.h
\brief Defines a generic interface for thermal EOS
*/
#ifndef EOSTHERMAL_H
#define EOSTHERMAL_H
#include "unitconv.h"
#include "datastore.h"
#include "eos_thermal_internals.h"
#include <string>
namespace EOS_Toolkit {
/// Interface for generic thermal EOS
class eos_thermal : detail::eos... | C/C++ Header | Unknown | 14,174 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/hdf5cpp.h | #ifndef HDF5CPP_H
#define HDF5CPP_H
#include <hdf5.h>
#include <memory>
#include <string>
#include <vector>
#include <array>
#include <stdexcept>
namespace EOS_Toolkit {
namespace detail {
template<class T> struct h5_types;
template<> struct h5_types<float> {
static hid_t id() {return H5T_NATIVE_FLOAT;}
};
temp... | C/C++ Header | Unknown | 8,491 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/hdf5store_impl.h | #ifndef HDF5STORE_IMPL_H
#define HDF5STORE_IMPL_H
//~ #include <hdf5.h>
#include <memory>
#include <string>
#include <vector>
#include <array>
#include "datastore.h"
#include "hdf5cpp.h"
namespace EOS_Toolkit {
namespace detail {
class h5group_source_impl : public source_impl {
const h5_group_read res;
pu... | C/C++ Header | Unknown | 2,642 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/interpol_linear.h | #ifndef INTERPOL_LINEAR_H
#define INTERPOL_LINEAR_H
#include <functional>
#include <memory>
#include <vector>
#include "config.h"
#include "interpol.h"
#include "datastore.h"
namespace EOS_Toolkit {
namespace detail {
class interpol_reglin_impl : public interpolator_impl {
public:
using interpolator_impl::fu... | C/C++ Header | Unknown | 5,716 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/smtensor.h | /*! \file smtensor.h
\brief Templated classes to work with (fixed size) tensors.
*/
#ifndef SMTENSOR_H
#define SMTENSOR_H
#include <array>
#include <cassert>
#include <cmath>
#include "config.h"
namespace EOS_Toolkit {
enum zero_literal {ZERO=0};
enum one_literal {ONE=1};
template<class T, int N> class sm_matrix_s... | C/C++ Header | Unknown | 28,917 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/interpol_pchip_spline.h | #ifndef INTERPOL_PCHIP_SPLINE_H
#define INTERPOL_PCHIP_SPLINE_H
#include <functional>
#include <memory>
#include <vector>
#include <gsl/gsl_spline.h>
#include "config.h"
#include "interpol.h"
#include "datastore.h"
namespace EOS_Toolkit {
namespace detail {
class interpol_pchip_impl : public interpolator_impl { ... | C/C++ Header | Unknown | 3,772 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/hdf5store.h | #ifndef HDF5STORE_H
#define HDF5STORE_H
#include <string>
#include "datastore.h"
namespace EOS_Toolkit {
datasource make_hdf5_file_source(std::string path);
datasink make_hdf5_file_sink(std::string path);
} // namespace EOS_Toolkit
#endif
| C/C++ Header | Unknown | 245 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/global_registry.h | #ifndef GLOBAL_REGISTRY_H
#define GLOBAL_REGISTRY_H
#include <string>
#include <unordered_map>
#include <cassert>
namespace EOS_Toolkit {
/**\brief Global static registry of named polymorphic objects
This allows defining a map of names to objects subclassing an abstract
interface before main(). Used for example to... | C/C++ Header | Unknown | 1,481 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/intervals.h | #ifndef INTERVALS_H
#define INTERVALS_H
#include <cmath>
#include <algorithm>
#include <cassert>
namespace EOS_Toolkit {
/**Class representing a closed interval
@tparam T the underlying numerical type, e.g. double
**/
template<class T>
class interval {
T min_{0}; ///< Lower boundary
T max_{0}; ///< Upper bou... | C/C++ Header | Unknown | 3,084 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/unitconv.h | #ifndef UNITCONV_H
#define UNITCONV_H
#include <iostream>
#include <string>
#include <cmath>
namespace EOS_Toolkit {
///Class to represent physical unit systems
/**
This class describes a system of units, by storing base units for
time, length and mass, and computes derived units. The unit system
in which to speci... | C/C++ Header | Unknown | 5,125 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/interpol_logspl.h | #ifndef INTERPOL_LOGSPL_H
#define INTERPOL_LOGSPL_H
#include <functional>
#include <memory>
#include <vector>
#include "config.h"
#include "interpol.h"
#include "interpol_regspl.h"
#include "datastore.h"
namespace EOS_Toolkit {
namespace detail {
class interpol_logspl_impl : public interpolator_impl {
public:
... | C/C++ Header | Unknown | 5,861 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/datastore.h | #ifndef DATASTORE_H
#define DATASTORE_H
#include <memory>
#include <utility>
#include <string>
#include <vector>
#include <stdexcept>
#include <boost/optional.hpp>
#include "intervals.h"
namespace EOS_Toolkit {
namespace detail {
class source_impl {
public:
virtual bool has_data(std::string) const=0;
virtual... | C/C++ Header | Unknown | 5,264 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/interpol_regspl.h | #ifndef INTERPOL_REGSPL_H
#define INTERPOL_REGSPL_H
#include <functional>
#include <memory>
#include <vector>
#include <array>
#include "config.h"
#include "interpol.h"
#include "datastore.h"
namespace EOS_Toolkit {
namespace detail {
class interpol_regspl_impl : public interpolator_impl {
public:
struct segm... | C/C++ Header | Unknown | 3,355 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/interpol.h | #ifndef INTERPOL_H
#define INTERPOL_H
#include <functional>
#include <memory>
#include <vector>
#include "config.h"
#include "intervals.h"
#include "datastore.h"
namespace EOS_Toolkit {
namespace detail {
class interpolator_impl {
public:
using func_t = std::function<real_t(real_t)>;
using range_t = int... | C/C++ Header | Unknown | 6,462 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/BasicStuff/include/config.h | #ifndef EOS_TOOLKIT_CONFIG_H
#define EOS_TOOLKIT_CONFIG_H
namespace EOS_Toolkit {
using real_t = double;
}
#endif
| C/C++ Header | Unknown | 120 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/eos_barotr_pwpoly_impl.h | #ifndef EOS_BAROTR_PWPOLY_IMPL_H
#define EOS_BAROTR_PWPOLY_IMPL_H
#include "eos_barotropic_impl.h"
#include <vector>
namespace EOS_Toolkit {
namespace implementations {
///Class representing a segment of the piecewise polytropic EOS
class eos_poly_piece {
public:
real_t rmd0;
real_t dsed;
real_t gamma;
rea... | C/C++ Header | Unknown | 4,168 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/eos_barotr_spline_impl.h | #ifndef EOS_BAROTR_SPLINE_IMPL_H
#define EOS_BAROTR_SPLINE_IMPL_H
#include "eos_barotropic_impl.h"
#include "eos_barotr_gpoly_impl.h"
#include "interpol_logspl.h"
#include <vector>
#include <boost/optional.hpp>
namespace EOS_Toolkit {
namespace implementations {
///Barotropic EOS based on cardinal spline interpolat... | C/C++ Header | Unknown | 4,748 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/eos_barotr_poly_impl.h | #ifndef EOS_BAROTR_POLY_IMPL_H
#define EOS_BAROTR_POLY_IMPL_H
#include "eos_barotropic_impl.h"
namespace EOS_Toolkit {
namespace implementations {
///Polytropic EOS
/**
The polytropic EOS is written (using units with \f$ c=1 \f$) as
\f[ P = \rho_p \left(\frac{\rho}{\rho_p}\right)^\Gamma ,\qquad
\Gamma= 1+\frac{1}{n}... | C/C++ Header | Unknown | 4,174 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/eos_barotr_gpoly_impl.h | #ifndef EOS_BAROTR_GPOLY_IMPL_H
#define EOS_BAROTR_GPOLY_IMPL_H
#include <memory>
#include "eos_barotropic_impl.h"
#include "datastore.h"
namespace EOS_Toolkit {
namespace implementations {
///Generalized Polytropic EOS
/**
The generalized polytropic EOS is the same as a polytropic one, except
that the specific inter... | C/C++ Header | Unknown | 4,512 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/eos_barotr_table_impl.h | #ifndef EOS_BAROTR_TABLE_IMPL_H
#define EOS_BAROTR_TABLE_IMPL_H
#include "eos_barotropic_impl.h"
#include "eos_barotr_gpoly_impl.h"
#include "interpol.h"
#include <vector>
namespace EOS_Toolkit {
namespace implementations {
///Tabulated barotropic EOS.
/**
This uses lookup tables with logarithmic interpolation (lo... | C/C++ Header | Unknown | 4,390 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/include/eos_barotr_spline.h | #ifndef EOS_BAROTR_SPLINE_H
#define EOS_BAROTR_SPLINE_H
#include "eos_barotropic.h"
#include <vector>
#include <functional>
namespace EOS_Toolkit {
/**\brief Create barotropic EOS based on splines
This EOS type internally uses regularly-spaced cardinal cubic splines.
The regular spacing implies that the evaluation ... | C/C++ Header | Unknown | 12,845 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/include/eos_barotr_poly.h | #ifndef EOS_BAROTR_POLY_H
#define EOS_BAROTR_POLY_H
#include "eos_barotropic.h"
namespace EOS_Toolkit {
/**\brief Create a polytropic EOS
The valid range always starts at zero density up to user specified
maximum. If the polytropic index is less than one, the valid
range is reduced avoid superluminal soundspeed, i... | C/C++ Header | Unknown | 908 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/include/eos_barotr_file_impl.h | #ifndef EOS_BAROTR_FILE_IMPL_H
#define EOS_BAROTR_FILE_IMPL_H
#include <string>
#include "global_registry.h"
#include "datastore.h"
#include "eos_barotropic.h"
#include "unitconv.h"
namespace EOS_Toolkit {
namespace implementations {
struct reader_eos_barotr {
virtual eos_barotr load(const datasource f, const ... | C/C++ Header | Unknown | 521 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/include/eos_barotr_file.h | #ifndef EOS_BAROTR_FILE_H
#define EOS_BAROTR_FILE_H
#include "eos_barotropic.h"
#include "unitconv.h"
#include "datastore.h"
#include <string>
namespace EOS_Toolkit {
/**\brief Load barotropic EOS from hdf5 file.
@param fname Filename of EOS file
@param Unit system the returned EOS should use. The unit system nee... | C/C++ Header | Unknown | 1,100 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/include/eos_barotr_table.h | #ifndef EOS_BAROTR_TABLE_H
#define EOS_BAROTR_TABLE_H
#include "eos_barotropic.h"
#include <vector>
namespace EOS_Toolkit {
/**\brief Create tabulated barotropic EOS
The internally used regularly log-spaced lookup tables are set up
from irregularly spaced sample points provided as vectors, using
cubic monotonic spl... | C/C++ Header | Unknown | 2,331 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/include/eos_barotropic.h | #ifndef EOS_BAROTROPIC_H
#define EOS_BAROTROPIC_H
#include "config.h"
#include <memory>
#include <string>
#include "eos_barotropic_internals.h"
#include "intervals.h"
#include "unitconv.h"
#include "datastore.h"
namespace EOS_Toolkit {
/// Interface for generic barotropic EOS
class eos_barotr : detail::eos_barotr_b... | C/C++ Header | Unknown | 11,993 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/include/eos_barotropic_internals.h | #ifndef EOS_BAROTROPIC_INTERNALS_H
#define EOS_BAROTROPIC_INTERNALS_H
#include "config.h"
#include <memory>
#include "eos_barotropic_impl.h"
namespace EOS_Toolkit {
namespace detail {
class eos_barotr_base {
public:
using impl_t = implementations::eos_barotr_impl;
using spimpl_t = std::shared_ptr<const impl... | C/C++ Header | Unknown | 1,745 |
[ascl:2107.021] | https://github.com/wokast/RePrimAnd | library/EOS_Barotropic/include/eos_barotr_pwpoly.h | #ifndef EOS_BAROTR_PWPOLY_H
#define EOS_BAROTR_PWPOLY_H
#include "eos_barotropic.h"
#include <vector>
namespace EOS_Toolkit {
/**\brief Create piecewise polytropic EOS
The valid range always starts at zero density up to user specified
maximum. If the polytropic index of some segments is less than one,
the valid r... | C/C++ Header | Unknown | 1,134 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.