View Issue Details

IDProjectCategoryView StatusLast Update
0003916OpenFOAMBugpublic2022-10-21 10:06
Reporternidalsb Assigned Towill  
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSUbuntu 20.04OS Version15.04
Product Version10 
Fixed in Version10 
Summary0003916: Reconstructing a mesh with a Cyclic/Fixed Jump condition returns error
DescriptionWhenever I try to reconstruct a case with a fixed jump boundary condition I get the following error. running this with OpenFOAM v8, and v9 works just fine.

Here is the error:

Create time

Reconstructing fields for mesh region0

Time = 0.015s

Reconstructing FV fields

    Reconstructing volScalarFields


Attempt to cast type processorCyclic to type fixedJump

    From function To& Foam::refCast(From&) [with To = const Foam::fixedJumpFvPatchField<double>; From = const Foam::fvPatchField<double>]
    in file /home/ubuntu/OpenFOAM/OpenFOAM-10/src/OpenFOAM/lnInclude/typeInfo.H at line 114.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::fixedJumpFvPatchField<double> const& Foam::refCast<Foam::fixedJumpFvPatchField<double> const, Foam::fvPatchField<double> const>(Foam::fvPatchField<double> const&) at ??:?
#3 non-virtual thunk to Foam::fixedJumpFvPatchField<double>::rmap(Foam::fvPatchField<double> const&, Foam::List<int> const&) at ??:?
#4 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/reconstructPar"
#5 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/reconstructPar"
#6 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/reconstructPar"
#7 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/reconstructPar"
#8 __libc_start_main in "/lib/x86_64-linux-gnu/"
#9 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/reconstructPar"
Aborted (core dumped)
Steps To Reproduce1. Create a simple case (Channel Flow using PimpleFoam is similar to my use case)
2. Set the U boundary condition as Cyclic, The P boundary condition as a FixedJump
2. Run the simulation using Hierarchical decomposition
3. Run ReconstructPar (Above Error Occurs)
TagsNo tags attached.



2022-10-21 10:06

manager   ~0012818

We do not support this. There is no processorFixedJump condition for a fixedJump patch field to decompose into. If you use "patchType" overrides on a cyclic patch then when decomposing you must constrain that patch to a single processor.

The critical problem, as I see it, is that previous versions silently converted fixedJump faces into processorCyclic faces and vice versa. The resulting parallel simulation is then wrong as the processorCyclic faces have no jump applied.

I have added error messages to decomposePar and reconstructPar to catch this problem and advise a user as to what to do (i.e., use decomposition constraints). I consider this to have resolved this issue.

Issue History

Date Modified Username Field Change
2022-10-19 13:59 nidalsb New Issue
2022-10-21 10:06 will Assigned To => will
2022-10-21 10:06 will Status new => resolved
2022-10-21 10:06 will Resolution open => fixed
2022-10-21 10:06 will Fixed in Version => 10
2022-10-21 10:06 will Note Added: 0012818