mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: glboal file handling: initial commit
Moved file path handling to regIOobject and made it type specific so now every object can have its own rules. Examples: - faceZones are now processor local (and don't search up anymore) - timeStampMaster is now no longer hardcoded inside IOdictionary (e.g. uniformDimensionedFields support it as well) - the distributedTriSurfaceMesh is properly processor-local; no need for fileModificationChecking manipulation.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -26,7 +26,7 @@ License
|
||||
#include "displacementInterpolationMotionSolver.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "SortableList.H"
|
||||
#include "IOList.H"
|
||||
#include "GlobalIOList.H"
|
||||
#include "Tuple2.H"
|
||||
#include "mapPolyMesh.H"
|
||||
#include "interpolateXY.H"
|
||||
@ -45,7 +45,10 @@ namespace Foam
|
||||
);
|
||||
|
||||
template<>
|
||||
const word IOList<Tuple2<scalar, vector> >::typeName("scalarVectorTable");
|
||||
const word GlobalIOList<Tuple2<scalar, vector> >::typeName
|
||||
(
|
||||
"scalarVectorTable"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -94,7 +97,7 @@ displacementInterpolationMotionSolver
|
||||
|
||||
const word& tableName = faceZoneToTable[i][1];
|
||||
|
||||
IOList<Tuple2<scalar, vector> > table
|
||||
GlobalIOList<Tuple2<scalar, vector> > table
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
|
||||
@ -105,7 +105,7 @@ Foam::displacementLaplacianFvMotionSolver::displacementLaplacianFvMotionSolver
|
||||
}
|
||||
|
||||
|
||||
if (io.headerOk())
|
||||
if (io.typeHeaderOk<pointVectorField>(true))
|
||||
{
|
||||
pointLocation_.reset
|
||||
(
|
||||
|
||||
@ -293,7 +293,7 @@ void Foam::timeVaryingMappedFixedValuePointPatchField<Type>::checkTable()
|
||||
IOobject
|
||||
(
|
||||
"points",
|
||||
this->db().time().constant(),
|
||||
this->db().time().caseConstant(),
|
||||
"boundaryData"/this->patch().name(),
|
||||
this->db(),
|
||||
IOobject::MUST_READ,
|
||||
@ -403,7 +403,7 @@ void Foam::timeVaryingMappedFixedValuePointPatchField<Type>::checkTable()
|
||||
IOobject
|
||||
(
|
||||
fieldTableName_,
|
||||
this->db().time().constant(),
|
||||
this->db().time().caseConstant(),
|
||||
"boundaryData"
|
||||
/this->patch().name()
|
||||
/sampleTimes_[startSampleTime_].name(),
|
||||
@ -460,7 +460,7 @@ void Foam::timeVaryingMappedFixedValuePointPatchField<Type>::checkTable()
|
||||
IOobject
|
||||
(
|
||||
fieldTableName_,
|
||||
this->db().time().constant(),
|
||||
this->db().time().caseConstant(),
|
||||
"boundaryData"
|
||||
/this->patch().name()
|
||||
/sampleTimes_[endSampleTime_].name(),
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -82,7 +82,7 @@ uniformInterpolatedDisplacementPointPatchVectorField
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
);
|
||||
if (io.headerOk())
|
||||
if (io.typeHeaderOk<pointVectorField>(false))
|
||||
{
|
||||
names.append(allTimes[i].name());
|
||||
values.append(allTimes[i].value());
|
||||
|
||||
Reference in New Issue
Block a user