mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: cyclicAMI: optional settings not written. Fixes #2363
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||
Copyright (C) 2015-2020 OpenCFD Ltd.
|
||||
Copyright (C) 2015-2020,2022 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -476,4 +476,16 @@ bool Foam::advancingFrontAMI::calculate
|
||||
}
|
||||
|
||||
|
||||
void Foam::advancingFrontAMI::write(Ostream& os) const
|
||||
{
|
||||
AMIInterpolation::write(os);
|
||||
os.writeEntryIfDifferent<word>
|
||||
(
|
||||
"triMode",
|
||||
faceAreaIntersect::triangulationModeNames_[faceAreaIntersect::tmMesh],
|
||||
faceAreaIntersect::triangulationModeNames_[triMode_]
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -252,6 +252,12 @@ public:
|
||||
//- Labels of faces that are not overlapped by any target faces
|
||||
// Note: this should be empty for correct functioning
|
||||
inline const labelList& srcNonOverlap() const;
|
||||
|
||||
|
||||
// I-O
|
||||
|
||||
//- Write
|
||||
virtual void write(Ostream& os) const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2020 OpenCFD Ltd.
|
||||
Copyright (C) 2020,2022 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -520,6 +520,7 @@ bool Foam::faceAreaWeightAMI2D::calculate
|
||||
void Foam::faceAreaWeightAMI2D::write(Ostream& os) const
|
||||
{
|
||||
advancingFrontAMI::write(os);
|
||||
os.writeEntryIfDifferent<scalar>("Cbb", 0.1, Cbb_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2020 OpenCFD Ltd.
|
||||
Copyright (C) 2020,2022 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -405,4 +405,11 @@ bool Foam::nearestFaceAMI::calculate
|
||||
}
|
||||
|
||||
|
||||
void Foam::nearestFaceAMI::write(Ostream& os) const
|
||||
{
|
||||
AMIInterpolation::write(os);
|
||||
os.writeEntryIfDifferent<scalar>("maxDistance2", GREAT, maxDistance2_);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -155,6 +155,9 @@ public:
|
||||
const primitivePatch& tgtPatch,
|
||||
const autoPtr<searchableSurface>& surfPtr = nullptr
|
||||
);
|
||||
|
||||
//- Write
|
||||
virtual void write(Ostream& os) const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user