22 _geomFields(geomFields),
23 _thermalFields(thermalFields)
25 const int numMeshes =
_meshes.size();
26 for (
int n=0; n<numMeshes; n++)
31 _vcMap[mesh.
getID()] = vc;
41 const int numMeshes =
_meshes.size();
42 for (
int n=0; n<numMeshes; n++)
50 TArray& conductivity=
dynamic_cast<TArray&
>(_thermalFields.conductivity[cells]);
55 const float stefan = 0.0000000567;
60 const T gamma = 1/(3*(a+sigmas) - C*sigmas);
61 for(
int c=0; c<nCells; c++)
66 conductivity[c] = 16*stefan*gamma*index*index*temp*temp*temp;
86 _impl(new
Impl(geomFields,thermalFields,meshes))
114 return _impl->advance(niter);
ThermalFields & _thermalFields
RosselandModel(const GeomFields &geomFields, ThermalFields &thermalFields, const MeshList &meshes)
bool advance(const int niter)
FloatVal< T > getVal(const string varName) const
bool advance(const int niter, bool init=false)
Impl(const GeomFields &geomFields, ThermalFields &thermalFields, const MeshList &meshes)
const StorageSite & getCells() const
virtual ~RosselandModel()
std::map< int, RosselandVC< T > * > VCMap
const GeomFields & _geomFields
vector< Mesh * > MeshList