Celeritas
0.5.0-56+6b053cd
|
#include "OrangeInputIO.json.hh"
#include <algorithm>
#include <initializer_list>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
#include "corecel/Assert.hh"
#include "corecel/Types.hh"
#include "corecel/cont/Array.hh"
#include "corecel/cont/ArrayIO.json.hh"
#include "corecel/cont/Range.hh"
#include "corecel/cont/Span.hh"
#include "corecel/io/JsonUtils.json.hh"
#include "corecel/io/Label.hh"
#include "corecel/io/LabelIO.json.hh"
#include "corecel/io/Logger.hh"
#include "geocel/BoundingBoxIO.json.hh"
#include "OrangeInput.hh"
#include "OrangeTypes.hh"
#include "surf/SurfaceTypeTraits.hh"
#include "detail/OrangeInputIOImpl.json.hh"
Functions | |
void | celeritas::from_json (nlohmann::json const &j, VolumeInput &value) |
Read cell/volume data from an ORANGE JSON file. | |
void | celeritas::to_json (nlohmann::json &j, VolumeInput const &value) |
Write cell/volume data to an ORANGE JSON file. | |
void | celeritas::from_json (nlohmann::json const &j, UnitInput &value) |
Read a unit definition from an ORANGE input file. More... | |
void | celeritas::to_json (nlohmann::json &j, UnitInput const &value) |
Write a unit definition to an ORANGE input file. | |
void | celeritas::from_json (nlohmann::json const &j, RectArrayInput &value) |
Read a rectangular array universe definition from an ORANGE input file. | |
void | celeritas::to_json (nlohmann::json &j, RectArrayInput const &value) |
Write a rectangular array universe definition to an ORANGE input file. | |
template<class T > | |
void | celeritas::from_json (nlohmann::json const &j, Tolerance< T > &value) |
Read tolerances. | |
template void | celeritas::from_json (nlohmann::json const &, Tolerance< real_type > &) |
template<class T > | |
void | celeritas::to_json (nlohmann::json &j, Tolerance< T > const &value) |
Write tolerances. | |
template void | celeritas::to_json (nlohmann::json &, Tolerance< real_type > const &) |
void | celeritas::from_json (nlohmann::json const &j, OrangeInput &value) |
Read a partially preprocessed geometry definition from an ORANGE JSON file. | |
void | celeritas::to_json (nlohmann::json &j, OrangeInput const &value) |
Write an ORANGE input file. | |
std::istream & | celeritas::operator>> (std::istream &is, OrangeInput &inp) |
Helper to read the input from a file or stream. More... | |
std::ostream & | celeritas::operator<< (std::ostream &os, OrangeInput const &inp) |
Helper to write the input to a file or stream. | |
void celeritas::from_json | ( | nlohmann::json const & | j, |
UnitInput & | value | ||
) |
Read a unit definition from an ORANGE input file.
NOTE: 'cell' nomenclature is from SCALE export (version 0)
std::istream & celeritas::operator>> | ( | std::istream & | is, |
OrangeInput & | inp | ||
) |
Helper to read the input from a file or stream.
Example to read from a file: