mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Allow access to material temperature from openmc.lib
This commit is contained in:
parent
2e1e669e8a
commit
77d99d499b
4 changed files with 44 additions and 15 deletions
|
|
@ -131,6 +131,10 @@ public:
|
|||
//! \return Volume in [cm^3]
|
||||
double volume() const;
|
||||
|
||||
//! Get temperature of material
|
||||
//! \return Temperature in [K]
|
||||
double temperature() const;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Data
|
||||
int32_t id_ {C_NONE}; //!< Unique ID
|
||||
|
|
@ -154,11 +158,6 @@ public:
|
|||
// Thermal scattering tables
|
||||
std::vector<ThermalTable> thermal_tables_;
|
||||
|
||||
//! \brief Default temperature for cells containing this material.
|
||||
//!
|
||||
//! A negative value indicates no default temperature was specified.
|
||||
double temperature_ {-1};
|
||||
|
||||
std::unique_ptr<Bremsstrahlung> ttb_;
|
||||
|
||||
private:
|
||||
|
|
@ -180,6 +179,11 @@ private:
|
|||
//----------------------------------------------------------------------------
|
||||
// Private data members
|
||||
gsl::index index_;
|
||||
|
||||
//! \brief Default temperature for cells containing this material.
|
||||
//!
|
||||
//! A negative value indicates no default temperature was specified.
|
||||
double temperature_ {-1};
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue