50 const word& sourceName,
51 const word& modelType,
56 fa::faceSetOption(sourceName, modelType,
dict, m),
64 regionMesh().thisDb().time().
timeName(),
65 regionMesh().thisDb(),
69 dict.getOrDefault(
"store", false)
94 void Foam::fa::externalFileSource::updateMapping()
97 const scalar t =
mesh().time().value();
99 PtrList<scalarField> patchValues(mapping_.size());
103 const auto* map = mapping_.get(patchi);
107 patchValues.set(patchi, map->value(t));
111 vsm().mapToSurface<scalar>(patchValues, pExt_.field());
128 <<
name() <<
": applying source to " 137 curTimeIndex_ =
mesh().time().timeIndex();
155 for (
const label patchi :
patches)
157 const polyPatch&
p = mesh_.boundaryMesh()[patchi];
163 new PatchFunction1Types::MappedFile<scalar>
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
addToRunTimeSelectionTable(option, limitHeight, dictionary)
Namespace of functions to calculate implicit derivatives returning a matrix. Time derivatives are cal...
wordList fieldNames_
Field names to apply source to - populated by derived models.
const volSurfaceMapping vsm(aMesh)
void resize(const label len)
Adjust allocated size of list.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const word & name() const noexcept
Return the object name.
const Internal & internalField() const noexcept
Return a const-reference to the dimensioned internal field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void addSup(const areaScalarField &rho, faMatrix< scalar > &eqn, const label fieldi)
Add explicit contribution to compressible momentum equation.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
defineTypeNameAndDebug(limitHeight, 0)
virtual bool read(const dictionary &dict)
Read source dictionary.
const dimensionSet dimPressure
#define DebugInfo
Report an information message using Foam::Info.
virtual bool read(const dictionary &dict)
Read source dictionary.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
externalFileSource(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
Mesh data needed to do the Finite Volume discretisation.
const polyBoundaryMesh & patches
A special matrix type and solver, designed for finite area solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
void subsetFilter(List< Type > &field) const
Zero all non-selected locations within field.
const GeometricField< Type, faPatchField, areaMesh > & psi() const
List< label > labelList
A List of labels.
Defines the attributes of an object for which implicit objectRegistry management is supported...
static constexpr const zero Zero
Global zero (0)