Go to the documentation of this file.
31 void Foam::fv::jouleHeatingSource::initialiseSigma
33 const dictionary&
dict,
34 autoPtr<Function1<Type>>& sigmaVsTPtr
37 typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
39 if (
dict.found(
"sigma"))
58 mesh_.objectRegistry::store(tsigma.ptr());
60 Info<<
" Conductivity 'sigma' read from dictionary as f(T)"
79 mesh_.objectRegistry::store(tsigma.ptr());
81 Info<<
" Conductivity 'sigma' read from file" <<
nl <<
endl;
88 Foam::fv::jouleHeatingSource::updateSigma
96 mesh_.lookupObjectRef<VolFieldType>(typeName +
":sigma");
98 if (!sigmaVsTPtr.valid())
109 sigma[i] = sigmaVsTPtr->value(
T[i]);
114 typename VolFieldType::Boundary& bf =
sigma.boundaryFieldRef();
123 pf[facei] = sigmaVsTPtr->value(Tbf[facei]);
129 sigma.correctBoundaryConditions();
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
static constexpr const zero Zero
Global zero (0)
static word timeName(const scalar t, const int precision=precision_)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const fvMesh & mesh_
Reference to the mesh database.
#define forAll(list, i)
Loop across all elements in list.
const dimensionSet dimCurrent(0, 0, 0, 0, 0, 1, 0)
messageStream Info
Information stream (uses stdout - output is on the master only)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionSet dimPower
This boundary condition provides an 'empty' condition for reduced dimensions cases,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const TargetType * isA(const Type &t)
Check if dynamic_cast to TargetType is possible.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
static tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.
const Time & time() const
Return the top-level database.
static autoPtr< Function1< Type > > New(const word &entryName, const dictionary &dict, const word &redirectType=word::null)
Selector.
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)