OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
OpenImpala::ResultsJSON Class Reference

#include <ResultsJSON.H>

Public Member Functions

void addDirectionResult (const std::string &dir, Real D_eff_ratio)
nlohmann::ordered_json buildJSON () const
void setBPXElectrode (const std::string &electrode)
void setDeffTensor (const Real tensor[3][3])
 Set the full effective diffusivity tensor (from homogenization).
void setGridInfo (int nx, int ny, int nz, int box_size)
void setInputFile (const std::string &filename)
void setMacroGeometry (Real thickness, Real cross_section, Real total_volume)
 Set macro-geometric parameters (thickness, cross-section, volume).
void setMultiPhaseVolumeFractions (const std::map< int, Real > &phase_vfs)
 Set multi-phase volume fractions (phase_id -> VF).
void setParticleSizeDistribution (Real mean_radius, int num_particles, const std::vector< Real > &radii)
 Set particle size distribution results.
void setPhaseId (int phase_id)
void setPhysicsConfig (const PhysicsConfig &cfg)
void setProvenance (const std::string &sample_id, const std::string &provenance_uri)
void setSolidPhaseBruggeman (Real b_s)
 Set solid-phase Bruggeman exponent.
void setSolverInfo (const std::string &solver, bool converged)
void setSpecificSurfaceArea (Real ssa)
 Set corrected specific surface area (Cauchy-Crofton corrected, voxel units).
void setSpecificSurfaceAreaRaw (Real ssa_raw)
 Set raw specific surface area (uncorrected voxel face count per volume).
void setThroughThicknessProfile (const std::string &dir, const std::vector< Real > &vf_profile)
 Set through-thickness volume fraction profile for a direction.
void setVolumeFraction (Real vf)
void setVoxelSize (Real voxel_size_m)
 Set voxel size in meters for unit conversion in BPX output.
bool write (const std::string &filepath) const

Member Function Documentation

◆ addDirectionResult()

void OpenImpala::ResultsJSON::addDirectionResult ( const std::string & dir,
Real D_eff_ratio )
inline

◆ buildJSON()

nlohmann::ordered_json OpenImpala::ResultsJSON::buildJSON ( ) const
inline

◆ setBPXElectrode()

void OpenImpala::ResultsJSON::setBPXElectrode ( const std::string & electrode)
inline

Set BPX electrode type to enable BPX-compatible output fragment. Valid values: "negative", "positive", "separator".

◆ setDeffTensor()

void OpenImpala::ResultsJSON::setDeffTensor ( const Real tensor[3][3])
inline

Set the full effective diffusivity tensor (from homogenization).

◆ setGridInfo()

void OpenImpala::ResultsJSON::setGridInfo ( int nx,
int ny,
int nz,
int box_size )
inline

◆ setInputFile()

void OpenImpala::ResultsJSON::setInputFile ( const std::string & filename)
inline

◆ setMacroGeometry()

void OpenImpala::ResultsJSON::setMacroGeometry ( Real thickness,
Real cross_section,
Real total_volume )
inline

Set macro-geometric parameters (thickness, cross-section, volume).

◆ setMultiPhaseVolumeFractions()

void OpenImpala::ResultsJSON::setMultiPhaseVolumeFractions ( const std::map< int, Real > & phase_vfs)
inline

Set multi-phase volume fractions (phase_id -> VF).

◆ setParticleSizeDistribution()

void OpenImpala::ResultsJSON::setParticleSizeDistribution ( Real mean_radius,
int num_particles,
const std::vector< Real > & radii )
inline

Set particle size distribution results.

◆ setPhaseId()

void OpenImpala::ResultsJSON::setPhaseId ( int phase_id)
inline

◆ setPhysicsConfig()

void OpenImpala::ResultsJSON::setPhysicsConfig ( const PhysicsConfig & cfg)
inline

◆ setProvenance()

void OpenImpala::ResultsJSON::setProvenance ( const std::string & sample_id,
const std::string & provenance_uri )
inline

◆ setSolidPhaseBruggeman()

void OpenImpala::ResultsJSON::setSolidPhaseBruggeman ( Real b_s)
inline

Set solid-phase Bruggeman exponent.

◆ setSolverInfo()

void OpenImpala::ResultsJSON::setSolverInfo ( const std::string & solver,
bool converged )
inline

◆ setSpecificSurfaceArea()

void OpenImpala::ResultsJSON::setSpecificSurfaceArea ( Real ssa)
inline

Set corrected specific surface area (Cauchy-Crofton corrected, voxel units).

◆ setSpecificSurfaceAreaRaw()

void OpenImpala::ResultsJSON::setSpecificSurfaceAreaRaw ( Real ssa_raw)
inline

Set raw specific surface area (uncorrected voxel face count per volume).

◆ setThroughThicknessProfile()

void OpenImpala::ResultsJSON::setThroughThicknessProfile ( const std::string & dir,
const std::vector< Real > & vf_profile )
inline

Set through-thickness volume fraction profile for a direction.

◆ setVolumeFraction()

void OpenImpala::ResultsJSON::setVolumeFraction ( Real vf)
inline

◆ setVoxelSize()

void OpenImpala::ResultsJSON::setVoxelSize ( Real voxel_size_m)
inline

Set voxel size in meters for unit conversion in BPX output.

◆ write()

bool OpenImpala::ResultsJSON::write ( const std::string & filepath) const
inline

The documentation for this class was generated from the following file: