BUG: cyclicAMI: optional settings not written. Fixes #2363

This commit is contained in:
mattijs
2022-02-11 18:38:11 +00:00
parent 24bee96db2
commit bdb9a54bed
5 changed files with 32 additions and 3 deletions

View File

@ -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_]
);
}
// ************************************************************************* //

View File

@ -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;
};

View File

@ -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_);
}

View File

@ -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_);
}
// ************************************************************************* //

View File

@ -155,6 +155,9 @@ public:
const primitivePatch& tgtPatch,
const autoPtr<searchableSurface>& surfPtr = nullptr
);
//- Write
virtual void write(Ostream& os) const;
};