View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003916 | OpenFOAM | Bug | public | 2022-10-19 13:59 | 2022-10-21 10:06 |
Reporter | nidalsb | Assigned To | will | ||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | GNU/Linux | OS | Ubuntu 20.04 | OS Version | 15.04 |
Product Version | 10 | ||||
Fixed in Version | 10 | ||||
Summary | 0003916: Reconstructing a mesh with a Cyclic/Fixed Jump condition returns error | ||||
Description | Whenever 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 nut p --> FOAM FATAL ERROR: 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/libc.so.6" #9 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/reconstructPar" Aborted (core dumped) __________________________________________________________________________________________________________________________________________________________________________________ | ||||
Steps To Reproduce | 1. 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) | ||||
Tags | No tags attached. | ||||
|
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. https://github.com/OpenFOAM/OpenFOAM-dev/commit/a7155a7e0a69f651c14fe6630cdecbc0d1c0d72c https://github.com/OpenFOAM/OpenFOAM-10/commit/875cb6280d95cbe0d7d6925aa8e70bca0fec612c |