Merge branch 'master' of /home/dm4/OpenFOAM/repositories/OpenFOAM-dev

This commit is contained in:
andy
2014-01-22 13:59:24 +00:00
43 changed files with 242 additions and 341 deletions

View File

@ -26,5 +26,4 @@ EXE_LIBS = \
-ltopoChangerFvMesh \ -ltopoChangerFvMesh \
-lmeshTools \ -lmeshTools \
-lfvOptions \ -lfvOptions \
-lsampling \ -lsampling
-lsixDoFRigidBodyMotion

View File

@ -1,36 +0,0 @@
if (packingLimiter)
{
// Calculating exceeding volume fractions
volScalarField alphaEx(max(alpha1 - alphaMax, scalar(0)));
// Finding neighbouring cells of the whole domain
labelListList neighbour = mesh.cellCells();
scalarField cellVolumes(mesh.cellVolumes());
forAll (alphaEx, celli)
{
// Finding the labels of the neighbouring cells
labelList neighbourCell = neighbour[celli];
// Initializing neighbouring cells contribution
scalar neighboursEx = 0.0;
forAll (neighbourCell, cellj)
{
labelList neighboursNeighbour = neighbour[neighbourCell[cellj]];
scalar neighboursNeighbourCellVolumes = 0.0;
forAll (neighboursNeighbour, cellk)
{
neighboursNeighbourCellVolumes +=
cellVolumes[neighboursNeighbour[cellk]];
}
neighboursEx +=
alphaEx[neighbourCell[cellj]]*cellVolumes[celli]
/neighboursNeighbourCellVolumes;
}
alpha1[celli] += neighboursEx - alphaEx[celli];
}
}

View File

@ -1,36 +0,0 @@
IOdictionary ppProperties
(
IOobject
(
"ppProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
)
);
scalar preAlphaExp
(
readScalar(ppProperties.lookup("preAlphaExp"))
);
scalar alphaMax
(
readScalar(ppProperties.lookup("alphaMax"))
);
scalar expMax
(
readScalar(ppProperties.lookup("expMax"))
);
dimensionedScalar g0
(
ppProperties.lookup("g0")
);
Switch packingLimiter
(
ppProperties.lookup("packingLimiter")
);

View File

@ -418,9 +418,9 @@ addLayersControls
// default is 0. // default is 0.
//nSmoothDisplacement 90; //nSmoothDisplacement 90;
// Optional: do not extrude any point where all surrounding faces // (wip)Optional: do not extrude a point if none of the surrounding points is
// have at least one point not extruded. Default is true. // not extruded. Default is false.
//detectExtrusionIsland false; //detectExtrusionIsland true;
// Mesh shrinking // Mesh shrinking
@ -488,7 +488,9 @@ meshQualityControls
//( //(
// mesh // write intermediate meshes // mesh // write intermediate meshes
// intersections // write current mesh intersections as .obj files // intersections // write current mesh intersections as .obj files
// featureSeeds // write information about explicit feature edge refinement // featureSeeds // write information about explicit feature edge
// // refinement
// attraction // write attraction as .obj files
// layerInfo // write information about layers // layerInfo // write information about layers
//); //);
// //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -90,7 +90,7 @@ void writeWeights(const polyMesh& mesh)
( (
ami.tgtWeightsSum(), ami.tgtWeightsSum(),
cpp.neighbPatch(), cpp.neighbPatch(),
"output", "postProcessing",
"tgt", "tgt",
tmName tmName
); );
@ -98,7 +98,7 @@ void writeWeights(const polyMesh& mesh)
( (
ami.srcWeightsSum(), ami.srcWeightsSum(),
cpp, cpp,
"output", "postProcessing",
"src", "src",
tmName tmName
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -141,7 +141,7 @@ void Foam::primitiveMesh::makeCellCentresAndVols
forAll(cellCtrs, celli) forAll(cellCtrs, celli)
{ {
if (cellVols[celli] > VSMALL) if (mag(cellVols[celli]) > VSMALL)
{ {
cellCtrs[celli] /= cellVols[celli]; cellCtrs[celli] /= cellVols[celli];
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -41,7 +41,7 @@ Description
#include "mapPolyMesh.H" #include "mapPolyMesh.H"
#include "addPatchCellLayer.H" #include "addPatchCellLayer.H"
#include "mapDistributePolyMesh.H" #include "mapDistributePolyMesh.H"
#include "OFstream.H" #include "OBJstream.H"
#include "layerParameters.H" #include "layerParameters.H"
#include "combineFaces.H" #include "combineFaces.H"
#include "IOmanip.H" #include "IOmanip.H"
@ -80,37 +80,25 @@ void Foam::autoLayerDriver::dumpDisplacement
const List<extrudeMode>& extrudeStatus const List<extrudeMode>& extrudeStatus
) )
{ {
OFstream dispStr(prefix + "_disp.obj"); OBJstream dispStr(prefix + "_disp.obj");
Info<< "Writing all displacements to " << dispStr.name() << endl; Info<< "Writing all displacements to " << dispStr.name() << endl;
label vertI = 0;
forAll(patchDisp, patchPointI) forAll(patchDisp, patchPointI)
{ {
const point& pt = pp.localPoints()[patchPointI]; const point& pt = pp.localPoints()[patchPointI];
dispStr.write(linePointRef(pt, pt + patchDisp[patchPointI]));
meshTools::writeOBJ(dispStr, pt); vertI++;
meshTools::writeOBJ(dispStr, pt + patchDisp[patchPointI]); vertI++;
dispStr << "l " << vertI-1 << ' ' << vertI << nl;
} }
OFstream illStr(prefix + "_illegal.obj"); OBJstream illStr(prefix + "_illegal.obj");
Info<< "Writing invalid displacements to " << illStr.name() << endl; Info<< "Writing invalid displacements to " << illStr.name() << endl;
vertI = 0;
forAll(patchDisp, patchPointI) forAll(patchDisp, patchPointI)
{ {
if (extrudeStatus[patchPointI] != EXTRUDE) if (extrudeStatus[patchPointI] != EXTRUDE)
{ {
const point& pt = pp.localPoints()[patchPointI]; const point& pt = pp.localPoints()[patchPointI];
illStr.write(linePointRef(pt, pt + patchDisp[patchPointI]));
meshTools::writeOBJ(illStr, pt); vertI++;
meshTools::writeOBJ(illStr, pt + patchDisp[patchPointI]); vertI++;
illStr << "l " << vertI-1 << ' ' << vertI << nl;
} }
} }
} }
@ -441,13 +429,12 @@ void Foam::autoLayerDriver::handleFeatureAngle
point::max // null value point::max // null value
); );
label vertI = 0; autoPtr<OBJstream> str;
autoPtr<OFstream> str;
if (debug&meshRefinement::MESH) if (debug&meshRefinement::MESH)
{ {
str.reset str.reset
( (
new OFstream new OBJstream
( (
mesh.time().path() mesh.time().path()
/ "featureEdges_" / "featureEdges_"
@ -497,11 +484,9 @@ void Foam::autoLayerDriver::handleFeatureAngle
if (str.valid()) if (str.valid())
{ {
meshTools::writeOBJ(str(), pp.localPoints()[e[0]]); const point& p0 = pp.localPoints()[e[0]];
vertI++; const point& p1 = pp.localPoints()[e[1]];
meshTools::writeOBJ(str(), pp.localPoints()[e[1]]); str().write(linePointRef(p0, p1));
vertI++;
str()<< "l " << vertI-1 << ' ' << vertI << nl;
} }
} }
} }
@ -1542,7 +1527,7 @@ void Foam::autoLayerDriver::getPatchDisplacement
if (!meshTools::visNormal(n, faceNormals, pointFaces[patchPointI])) if (!meshTools::visNormal(n, faceNormals, pointFaces[patchPointI]))
{ {
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
Pout<< "No valid normal for point " << meshPointI Pout<< "No valid normal for point " << meshPointI
<< ' ' << pp.points()[meshPointI] << ' ' << pp.points()[meshPointI]
@ -1582,7 +1567,7 @@ void Foam::autoLayerDriver::getPatchDisplacement
if (nPoints > 0) if (nPoints > 0)
{ {
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
Pout<< "Displacement at illegal point " Pout<< "Displacement at illegal point "
<< localPoints[patchPointI] << localPoints[patchPointI]

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -94,7 +94,7 @@ Foam::label Foam::autoRefineDriver::featureEdgeRefine
( (
meshRefiner_.refineCandidates meshRefiner_.refineCandidates
( (
refineParams.keepPoints()[0], // For now only use one. refineParams.keepPoints(),
refineParams.curvature(), refineParams.curvature(),
refineParams.planarAngle(), refineParams.planarAngle(),
@ -207,7 +207,7 @@ Foam::label Foam::autoRefineDriver::surfaceOnlyRefine
( (
meshRefiner_.refineCandidates meshRefiner_.refineCandidates
( (
refineParams.keepPoints()[0], refineParams.keepPoints(),
refineParams.curvature(), refineParams.curvature(),
refineParams.planarAngle(), refineParams.planarAngle(),
@ -341,7 +341,7 @@ Foam::label Foam::autoRefineDriver::gapOnlyRefine
( (
meshRefiner_.refineCandidates meshRefiner_.refineCandidates
( (
refineParams.keepPoints()[0], refineParams.keepPoints(),
refineParams.curvature(), refineParams.curvature(),
refineParams.planarAngle(), refineParams.planarAngle(),
@ -753,7 +753,7 @@ Foam::label Foam::autoRefineDriver::shellRefine
( (
meshRefiner_.refineCandidates meshRefiner_.refineCandidates
( (
refineParams.keepPoints()[0], refineParams.keepPoints(),
refineParams.curvature(), refineParams.curvature(),
refineParams.planarAngle(), refineParams.planarAngle(),

View File

@ -1279,7 +1279,7 @@ void Foam::autoSnapDriver::detectNearSurfaces
autoPtr<OBJstream> gapStr; autoPtr<OBJstream> gapStr;
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
gapStr.reset gapStr.reset
( (
@ -3089,7 +3089,7 @@ void Foam::autoSnapDriver::doSnap
meshMover.setDisplacement(disp); meshMover.setDisplacement(disp);
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
dumpMove dumpMove
( (
@ -3120,13 +3120,6 @@ void Foam::autoSnapDriver::doSnap
<< " surfaces but the" << " surfaces but the"
<< " resulting mesh will not satisfy your quality" << " resulting mesh will not satisfy your quality"
<< " constraints" << nl << endl; << " constraints" << nl << endl;
//Info<< "Did not succesfully snap mesh. Giving up."
// << nl << endl;
//
//// Use current mesh as base mesh
//meshMover.correct();
//
//break;
} }
if (debug&meshRefinement::MESH) if (debug&meshRefinement::MESH)

View File

@ -422,7 +422,7 @@ void Foam::autoSnapDriver::calcNearestFace
^ faceSurfaceNormal[faceI]; ^ faceSurfaceNormal[faceI];
} }
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
dumpMove dumpMove
( (
@ -1037,7 +1037,7 @@ void Foam::autoSnapDriver::featureAttractionUsingReconstruction
{ {
autoPtr<OBJstream> feStr; autoPtr<OBJstream> feStr;
autoPtr<OBJstream> fpStr; autoPtr<OBJstream> fpStr;
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
feStr.reset feStr.reset
( (
@ -1331,7 +1331,7 @@ void Foam::autoSnapDriver::releasePointsNextToMultiPatch
) const ) const
{ {
autoPtr<OBJstream> multiPatchStr; autoPtr<OBJstream> multiPatchStr;
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
multiPatchStr.reset multiPatchStr.reset
( (
@ -1809,7 +1809,7 @@ void Foam::autoSnapDriver::determineFeatures
autoPtr<OBJstream> missedEdgeStr; autoPtr<OBJstream> missedEdgeStr;
autoPtr<OBJstream> featurePointStr; autoPtr<OBJstream> featurePointStr;
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
featureEdgeStr.reset featureEdgeStr.reset
( (
@ -2263,7 +2263,7 @@ void Foam::autoSnapDriver::determineBaffleFeatures
autoPtr<OBJstream> baffleEdgeStr; autoPtr<OBJstream> baffleEdgeStr;
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
baffleEdgeStr.reset baffleEdgeStr.reset
( (
@ -2865,7 +2865,7 @@ void Foam::autoSnapDriver::featureAttractionUsingFeatureEdges
// Dump // Dump
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
OBJstream featureEdgeStr OBJstream featureEdgeStr
( (
@ -2962,7 +2962,7 @@ void Foam::autoSnapDriver::featureAttractionUsingFeatureEdges
); );
} }
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
dumpMove dumpMove
( (
@ -3380,7 +3380,7 @@ Foam::vectorField Foam::autoSnapDriver::calcNearestSurfaceFeature
// Re-add normal component // Re-add normal component
tangPatchDisp += (pointNormals & patchDisp) * pointNormals; tangPatchDisp += (pointNormals & patchDisp) * pointNormals;
if (debug&meshRefinement::OBJINTERSECTIONS) if (debug&meshRefinement::ATTRACTION)
{ {
dumpMove dumpMove
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -67,13 +67,14 @@ namespace Foam
const char* Foam::NamedEnum const char* Foam::NamedEnum
< <
Foam::meshRefinement::IOdebugType, Foam::meshRefinement::IOdebugType,
4 5
>::names[] = >::names[] =
{ {
"mesh", "mesh",
//"scalarLevels", //"scalarLevels",
"intersections", "intersections",
"featureSeeds", "featureSeeds",
"attraction",
"layerInfo" "layerInfo"
}; };
@ -102,7 +103,7 @@ namespace Foam
} }
const Foam::NamedEnum<Foam::meshRefinement::IOdebugType, 4> const Foam::NamedEnum<Foam::meshRefinement::IOdebugType, 5>
Foam::meshRefinement::IOdebugTypeNames; Foam::meshRefinement::IOdebugTypeNames;
const Foam::NamedEnum<Foam::meshRefinement::IOoutputType, 1> const Foam::NamedEnum<Foam::meshRefinement::IOoutputType, 1>

View File

@ -92,15 +92,17 @@ public:
//IOSCALARLEVELS, //IOSCALARLEVELS,
IOOBJINTERSECTIONS, IOOBJINTERSECTIONS,
IOFEATURESEEDS, IOFEATURESEEDS,
IOATTRACTION,
IOLAYERINFO IOLAYERINFO
}; };
static const NamedEnum<IOdebugType, 4> IOdebugTypeNames; static const NamedEnum<IOdebugType, 5> IOdebugTypeNames;
enum debugType enum debugType
{ {
MESH = 1<<IOMESH, MESH = 1<<IOMESH,
//SCALARLEVELS = 1<<IOSCALARLEVELS, //SCALARLEVELS = 1<<IOSCALARLEVELS,
OBJINTERSECTIONS = 1<<IOOBJINTERSECTIONS, OBJINTERSECTIONS = 1<<IOOBJINTERSECTIONS,
FEATURESEEDS = 1<<IOFEATURESEEDS, FEATURESEEDS = 1<<IOFEATURESEEDS,
ATTRACTION = 1<< IOATTRACTION,
LAYERINFO = 1<<IOLAYERINFO LAYERINFO = 1<<IOLAYERINFO
}; };
@ -256,7 +258,7 @@ private:
// (or -1 if not passed through). Uses tracking. // (or -1 if not passed through). Uses tracking.
void markFeatureCellLevel void markFeatureCellLevel
( (
const point& keepPoint, const pointField& keepPoints,
labelList& maxFeatureLevel labelList& maxFeatureLevel
) const; ) const;
@ -264,7 +266,7 @@ private:
// features. // features.
label markFeatureRefinement label markFeatureRefinement
( (
const point& keepPoint, const pointField& keepPoints,
const label nAllowRefine, const label nAllowRefine,
labelList& refineCell, labelList& refineCell,
@ -779,7 +781,7 @@ public:
//- Calculate list of cells to refine. //- Calculate list of cells to refine.
labelList refineCandidates labelList refineCandidates
( (
const point& keepPoint, const pointField& keepPoints,
const scalar curvature, const scalar curvature,
const scalar planarAngle, const scalar planarAngle,
@ -914,7 +916,7 @@ public:
//- Select coupled faces that are not collocated //- Select coupled faces that are not collocated
void selectSeparatedCoupledFaces(boolList&) const; void selectSeparatedCoupledFaces(boolList&) const;
//- Find region cell is in. Uses optional perturbation to re-test. //- Find region point is in. Uses optional perturbation to re-test.
static label findRegion static label findRegion
( (
const polyMesh&, const polyMesh&,
@ -1018,6 +1020,8 @@ public:
const labelHashSet& set const labelHashSet& set
) const; ) const;
//- Merge edges, maintain mesh quality. Return global number
// of edges merged
label mergeEdgesUndo label mergeEdgesUndo
( (
const scalar minCos, const scalar minCos,

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -313,7 +313,7 @@ bool Foam::meshRefinement::markForRefine
void Foam::meshRefinement::markFeatureCellLevel void Foam::meshRefinement::markFeatureCellLevel
( (
const point& keepPoint, const pointField& keepPoints,
labelList& maxFeatureLevel labelList& maxFeatureLevel
) const ) const
{ {
@ -345,6 +345,10 @@ void Foam::meshRefinement::markFeatureCellLevel
// what to seed. Do this on only the processor that // what to seed. Do this on only the processor that
// holds the keepPoint. // holds the keepPoint.
forAll(keepPoints, i)
{
const point& keepPoint = keepPoints[i];
label cellI = -1; label cellI = -1;
label tetFaceI = -1; label tetFaceI = -1;
label tetPtI = -1; label tetPtI = -1;
@ -449,6 +453,7 @@ void Foam::meshRefinement::markFeatureCellLevel
} }
} }
} }
}
// Largest refinement level of any feature passed through // Largest refinement level of any feature passed through
@ -628,7 +633,7 @@ void Foam::meshRefinement::markFeatureCellLevel
// Calculates list of cells to refine based on intersection with feature edge. // Calculates list of cells to refine based on intersection with feature edge.
Foam::label Foam::meshRefinement::markFeatureRefinement Foam::label Foam::meshRefinement::markFeatureRefinement
( (
const point& keepPoint, const pointField& keepPoints,
const label nAllowRefine, const label nAllowRefine,
labelList& refineCell, labelList& refineCell,
@ -637,7 +642,7 @@ Foam::label Foam::meshRefinement::markFeatureRefinement
{ {
// Largest refinement level of any feature passed through // Largest refinement level of any feature passed through
labelList maxFeatureLevel; labelList maxFeatureLevel;
markFeatureCellLevel(keepPoint, maxFeatureLevel); markFeatureCellLevel(keepPoints, maxFeatureLevel);
// See which cells to refine. maxFeatureLevel will hold highest level // See which cells to refine. maxFeatureLevel will hold highest level
// of any feature edge that passed through. // of any feature edge that passed through.
@ -2009,7 +2014,7 @@ Foam::label Foam::meshRefinement::markProximityRefinement
// hitting overall limit maxGlobalCells. // hitting overall limit maxGlobalCells.
Foam::labelList Foam::meshRefinement::refineCandidates Foam::labelList Foam::meshRefinement::refineCandidates
( (
const point& keepPoint, const pointField& keepPoints,
const scalar curvature, const scalar curvature,
const scalar planarAngle, const scalar planarAngle,
@ -2077,7 +2082,7 @@ Foam::labelList Foam::meshRefinement::refineCandidates
{ {
label nFeatures = markFeatureRefinement label nFeatures = markFeatureRefinement
( (
keepPoint, keepPoints,
nAllowRefine, nAllowRefine,
refineCell, refineCell,

View File

@ -1,5 +1,4 @@
EXE_INC = \ EXE_INC = \
-DFULLDEBUG -g -O0 \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/postProcessing/functionObjects/forces/lnInclude \ -I$(LIB_SRC)/postProcessing/functionObjects/forces/lnInclude \

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -116,7 +116,7 @@ bool Foam::sixDoFRigidBodyMotionConstraints::axis::read
} }
void Foam::sixDoFRigidBodyMotionConstraints::axis::writeData void Foam::sixDoFRigidBodyMotionConstraints::axis::write
( (
Ostream& os Ostream& os
) const ) const
@ -125,5 +125,4 @@ void Foam::sixDoFRigidBodyMotionConstraints::axis::writeData
<< axis_ << token::END_STATEMENT << nl; << axis_ << token::END_STATEMENT << nl;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -101,8 +101,8 @@ public:
//- Update properties from given dictionary //- Update properties from given dictionary
virtual bool read(const dictionary& sDoFRBMCCoeff); virtual bool read(const dictionary& sDoFRBMCCoeff);
//- Write model data //- Write
virtual void writeData(Ostream&) const; virtual void write(Ostream&) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -116,7 +116,7 @@ bool Foam::sixDoFRigidBodyMotionConstraints::line::read
} }
void Foam::sixDoFRigidBodyMotionConstraints::line::writeData void Foam::sixDoFRigidBodyMotionConstraints::line::write
( (
Ostream& os Ostream& os
) const ) const
@ -125,5 +125,4 @@ void Foam::sixDoFRigidBodyMotionConstraints::line::writeData
<< dir_ << token::END_STATEMENT << nl; << dir_ << token::END_STATEMENT << nl;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -100,8 +100,8 @@ public:
//- Update properties from given dictionary //- Update properties from given dictionary
virtual bool read(const dictionary& sDoFRBMCCoeff); virtual bool read(const dictionary& sDoFRBMCCoeff);
//- Write model data //- Write
virtual void writeData(Ostream&) const; virtual void write(Ostream&) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -96,11 +96,11 @@ bool Foam::sixDoFRigidBodyMotionConstraints::orientation::read
} }
void Foam::sixDoFRigidBodyMotionConstraints::orientation::writeData void Foam::sixDoFRigidBodyMotionConstraints::orientation::write
( (
Ostream& os Ostream& os
) const ) const
{} {
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -94,8 +94,8 @@ public:
//- Update properties from given dictionary //- Update properties from given dictionary
virtual bool read(const dictionary& sDoFRBMCCoeff); virtual bool read(const dictionary& sDoFRBMCCoeff);
//- Write model data //- Write
virtual void writeData(Ostream&) const; virtual void write(Ostream&) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -97,7 +97,7 @@ bool Foam::sixDoFRigidBodyMotionConstraints::plane::read
} }
void Foam::sixDoFRigidBodyMotionConstraints::plane::writeData void Foam::sixDoFRigidBodyMotionConstraints::plane::write
( (
Ostream& os Ostream& os
) const ) const
@ -106,5 +106,4 @@ void Foam::sixDoFRigidBodyMotionConstraints::plane::writeData
<< normal_ << token::END_STATEMENT << nl; << normal_ << token::END_STATEMENT << nl;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -100,8 +100,8 @@ public:
//- Update properties from given dictionary //- Update properties from given dictionary
virtual bool read(const dictionary& sDoFRBMCCoeff); virtual bool read(const dictionary& sDoFRBMCCoeff);
//- Write model data //- Write
virtual void writeData(Ostream&) const; virtual void write(Ostream&) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -97,7 +97,7 @@ bool Foam::sixDoFRigidBodyMotionConstraints::point::read
} }
void Foam::sixDoFRigidBodyMotionConstraints::point::writeData void Foam::sixDoFRigidBodyMotionConstraints::point::write
( (
Ostream& os Ostream& os
) const ) const
@ -106,5 +106,4 @@ void Foam::sixDoFRigidBodyMotionConstraints::point::writeData
<< point_ << token::END_STATEMENT << nl; << point_ << token::END_STATEMENT << nl;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -103,8 +103,8 @@ public:
//- Update properties from given dictionary //- Update properties from given dictionary
virtual bool read(const dictionary& sDoFRBMCCoeff); virtual bool read(const dictionary& sDoFRBMCCoeff);
//- Write model data //- Write
virtual void writeData(Ostream&) const; virtual void write(Ostream&) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -60,21 +60,14 @@ bool Foam::sixDoFRigidBodyMotionConstraint::read
const dictionary& sDoFRBMCDict const dictionary& sDoFRBMCDict
) )
{ {
sDoFRBMCCoeffs_ = sDoFRBMCDict.subOrEmptyDict(type() + "Coeffs"); sDoFRBMCCoeffs_ = sDoFRBMCDict;
return true; return true;
} }
void Foam::sixDoFRigidBodyMotionConstraint::write(Ostream& os) const void Foam::sixDoFRigidBodyMotionConstraint::write(Ostream& os) const
{ {}
os << indent << word(type() + "Coeffs") << nl
<< indent << token::BEGIN_BLOCK << nl << incrIndent;
writeData(os);
os << decrIndent << indent << token::END_BLOCK << endl;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -146,12 +146,8 @@ public:
return sDoFRBMCCoeffs_; return sDoFRBMCCoeffs_;
} }
//- Write //- Write
virtual void write(Ostream&) const; virtual void write(Ostream&) const;
//- Write model data
virtual void writeData(Ostream&) const = 0;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -34,7 +34,10 @@ Foam::sixDoFRigidBodyMotionConstraint::New
const dictionary& sDoFRBMCDict const dictionary& sDoFRBMCDict
) )
{ {
const word constraintType(sDoFRBMCDict.lookup(typeName)); const word constraintType
(
sDoFRBMCDict.lookup("sixDoFRigidBodyMotionConstraint")
);
dictionaryConstructorTable::iterator cstrIter = dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(constraintType); dictionaryConstructorTablePtr_->find(constraintType);
@ -45,12 +48,11 @@ Foam::sixDoFRigidBodyMotionConstraint::New
( (
"sixDoFRigidBodyMotionConstraint::New" "sixDoFRigidBodyMotionConstraint::New"
"(" "("
"const word&, " "const dictionary& sDoFRBMCDict"
"const dictionary&"
")" ")"
) << "Unknown " << typeName << " type " ) << "Unknown sixDoFRigidBodyMotionConstraint type "
<< constraintType << nl << nl << constraintType << nl << nl
<< "Valid " << typeName << "s are : " << endl << "Valid sixDoFRigidBodyMotionConstraints are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()
<< exit(FatalError); << exit(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -195,7 +195,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::linearAxialAngularSpring::read
} }
void Foam::sixDoFRigidBodyMotionRestraints::linearAxialAngularSpring::writeData void Foam::sixDoFRigidBodyMotionRestraints::linearAxialAngularSpring::write
( (
Ostream& os Ostream& os
) const ) const
@ -213,5 +213,4 @@ void Foam::sixDoFRigidBodyMotionRestraints::linearAxialAngularSpring::writeData
<< damping_ << token::END_STATEMENT << nl; << damping_ << token::END_STATEMENT << nl;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -114,8 +114,8 @@ public:
//- Update properties from given dictionary //- Update properties from given dictionary
virtual bool read(const dictionary& sDoFRBMRCoeff); virtual bool read(const dictionary& sDoFRBMRCoeff);
//- Write model data //- Write
virtual void writeData(Ostream&) const; virtual void write(Ostream&) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -100,7 +100,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::linearDamper::read
} }
void Foam::sixDoFRigidBodyMotionRestraints::linearDamper::writeData void Foam::sixDoFRigidBodyMotionRestraints::linearDamper::write
( (
Ostream& os Ostream& os
) const ) const

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -104,8 +104,8 @@ public:
//- Update properties from given dictionary //- Update properties from given dictionary
virtual bool read(const dictionary& sDoFRBMRCoeff); virtual bool read(const dictionary& sDoFRBMRCoeff);
//- Write model data //- Write
virtual void writeData(Ostream&) const; virtual void write(Ostream&) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -120,7 +120,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::linearSpring::read
} }
void Foam::sixDoFRigidBodyMotionRestraints::linearSpring::writeData void Foam::sixDoFRigidBodyMotionRestraints::linearSpring::write
( (
Ostream& os Ostream& os
) const ) const
@ -141,5 +141,4 @@ void Foam::sixDoFRigidBodyMotionRestraints::linearSpring::writeData
<< restLength_ << token::END_STATEMENT << nl; << restLength_ << token::END_STATEMENT << nl;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -117,8 +117,8 @@ public:
//- Update properties from given dictionary //- Update properties from given dictionary
virtual bool read(const dictionary& sDoFRBMRCoeff); virtual bool read(const dictionary& sDoFRBMRCoeff);
//- Write model data //- Write
virtual void writeData(Ostream&) const; virtual void write(Ostream&) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -60,21 +60,10 @@ bool Foam::sixDoFRigidBodyMotionRestraint::read
const dictionary& sDoFRBMRDict const dictionary& sDoFRBMRDict
) )
{ {
sDoFRBMRCoeffs_ = sDoFRBMRDict.subOrEmptyDict(type() + "Coeffs"); sDoFRBMRCoeffs_ = sDoFRBMRDict;
return true; return true;
} }
void Foam::sixDoFRigidBodyMotionRestraint::write(Ostream& os) const
{
os << indent << word(type() + "Coeffs") << nl
<< indent << token::BEGIN_BLOCK << nl << incrIndent;
writeData(os);
os << decrIndent << indent << token::END_BLOCK << endl;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -150,12 +150,8 @@ public:
return sDoFRBMRCoeffs_; return sDoFRBMRCoeffs_;
} }
//- Write //- Write
virtual void write(Ostream&) const; virtual void write(Ostream&) const = 0;
//- Write model data
virtual void writeData(Ostream&) const = 0;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -34,7 +34,10 @@ Foam::sixDoFRigidBodyMotionRestraint::New
const dictionary& sDoFRBMRDict const dictionary& sDoFRBMRDict
) )
{ {
const word restraintType(sDoFRBMRDict.lookup(typeName)); const word restraintType
(
sDoFRBMRDict.lookup("sixDoFRigidBodyMotionRestraint")
);
dictionaryConstructorTable::iterator cstrIter = dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(restraintType); dictionaryConstructorTablePtr_->find(restraintType);
@ -45,12 +48,11 @@ Foam::sixDoFRigidBodyMotionRestraint::New
( (
"sixDoFRigidBodyMotionRestraint::New" "sixDoFRigidBodyMotionRestraint::New"
"(" "("
"const word&, " "const dictionary& sDoFRBMRDict"
"const dictionary&"
")" ")"
) << "Unknown " << typeName << " type " ) << "Unknown sixDoFRigidBodyMotionRestraint type "
<< restraintType << nl << nl << restraintType << nl << nl
<< "Valid " << typeName << " s types are : " << endl << "Valid sixDoFRigidBodyMotionRestraint types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()
<< exit(FatalError); << exit(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -102,7 +102,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::sphericalAngularDamper::read
} }
void Foam::sixDoFRigidBodyMotionRestraints::sphericalAngularDamper::writeData void Foam::sixDoFRigidBodyMotionRestraints::sphericalAngularDamper::write
( (
Ostream& os Ostream& os
) const ) const

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -103,8 +103,8 @@ public:
//- Update properties from given dictionary //- Update properties from given dictionary
virtual bool read(const dictionary& sDoFRBMRCoeff); virtual bool read(const dictionary& sDoFRBMRCoeff);
//- Write model data //- Write
virtual void writeData(Ostream&) const; virtual void write(Ostream&) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -147,7 +147,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::sphericalAngularSpring::read
} }
void Foam::sixDoFRigidBodyMotionRestraints::sphericalAngularSpring::writeData void Foam::sixDoFRigidBodyMotionRestraints::sphericalAngularSpring::write
( (
Ostream& os Ostream& os
) const ) const

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -111,8 +111,8 @@ public:
//- Update properties from given dictionary //- Update properties from given dictionary
virtual bool read(const dictionary& sDoFRBMRCoeff); virtual bool read(const dictionary& sDoFRBMRCoeff);
//- Write model data //- Write
virtual void writeData(Ostream&) const; virtual void write(Ostream&) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -221,8 +221,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::tabulatedAxialAngularSpring::read
} }
void Foam::sixDoFRigidBodyMotionRestraints::tabulatedAxialAngularSpring:: void Foam::sixDoFRigidBodyMotionRestraints::tabulatedAxialAngularSpring::write
writeData
( (
Ostream& os Ostream& os
) const ) const

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -121,8 +121,8 @@ public:
//- Update properties from given dictionary //- Update properties from given dictionary
virtual bool read(const dictionary& sDoFRBMRCoeff); virtual bool read(const dictionary& sDoFRBMRCoeff);
//- Write model data //- Write
virtual void writeData(Ostream&) const; virtual void write(Ostream&) const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -60,8 +60,14 @@ void Foam::sixDoFRigidBodyMotion::write(Ostream& os) const
os.writeKeyword("sixDoFRigidBodyMotionRestraint") os.writeKeyword("sixDoFRigidBodyMotionRestraint")
<< restraintType << token::END_STATEMENT << nl; << restraintType << token::END_STATEMENT << nl;
os.writeKeyword(word(restraintType + "Coeffs")) << nl;
os << indent << token::BEGIN_BLOCK << nl << incrIndent;
restraints_[rI].write(os); restraints_[rI].write(os);
os << decrIndent << indent << token::END_BLOCK << nl;
os << decrIndent << indent << token::END_BLOCK << endl; os << decrIndent << indent << token::END_BLOCK << endl;
} }
@ -83,8 +89,16 @@ void Foam::sixDoFRigidBodyMotion::write(Ostream& os) const
os.writeKeyword("sixDoFRigidBodyMotionConstraint") os.writeKeyword("sixDoFRigidBodyMotionConstraint")
<< constraintType << token::END_STATEMENT << nl; << constraintType << token::END_STATEMENT << nl;
constraints_[rI].sixDoFRigidBodyMotionConstraint::write(os);
os.writeKeyword(word(constraintType + "Coeffs")) << nl;
os << indent << token::BEGIN_BLOCK << nl << incrIndent;
constraints_[rI].write(os); constraints_[rI].write(os);
os << decrIndent << indent << token::END_BLOCK << nl;
os << decrIndent << indent << token::END_BLOCK << endl; os << decrIndent << indent << token::END_BLOCK << endl;
} }