View Issue Details

IDProjectCategoryView StatusLast Update
0004155OpenFOAMBugpublic2024-09-24 16:45
Reportertangshixin Assigned Towill  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Product Version12 
Fixed in Version12 
Summary0004155: NCC crashes with motionSolver rigidBodyMotion and sixDoFRigidBodyMotion
DescriptionFirst, thank you very much for developing the NCC. We want to test the compatibility of NCC and motionSolvers for further development.
It seems that it is currently incompatible with the motionSolver rigidBodyMotion and sixDoFRigidBodyMotion;
Steps To ReproduceThe case is first copied from incompressibleVoF/DTCHullMoving. The sliding patch is created in DTCHullMoving/system/snappyHexMeshDict using searchableCylinder.

The boundary conditions and the file fvSolution are modified by following the tutorial case incompressibleFluid/propeller.

The case is run by typing:
> ./Allrun

The foamRun is crashed due to the following error:

[41]
[41] --> FOAM FATAL ERROR:
[41] Attempt to cast type extrapolatedCalculated to type conformed
[41]
[41] From function To& Foam::refCast(From&) [with To = Foam::conformedFvPatchField<Foam::Tensor<double> >; From = Foam::fvPatchField<Foam::Tensor<double> >]
[41] in file /home/tangshixin/OpenFOAM/OpenFOAM-12/src/OpenFOAM/lnInclude/typeInfo.H at line 137.
[41]
FOAM parallel run aborting
Additional InformationThe case with the foamRun log is attached.
TagsNo tags attached.

Activities

tangshixin

2024-09-22 14:54

reporter  

DTCHullMoving.tar.xz (13,528 bytes)

will

2024-09-24 16:45

manager   ~0013417

Thanks for the report. Fixed in dev and v12 here:

https://github.com/OpenFOAM/OpenFOAM-dev/commit/81692e26fbefb23709839429dca0cdeec5a1b29d
https://github.com/OpenFOAM/OpenFOAM-12/commit/855365b951e07e69091a55bf7dd4acf7fbbf4e77

The issue was to do with the caching of grad(U). So if you remove grad(U) from in system/fvSolution/cache then that also fixes the issue. Just FYI in case you are stuck with an old build or pack.

Issue History

Date Modified Username Field Change
2024-09-22 14:54 tangshixin New Issue
2024-09-22 14:54 tangshixin File Added: DTCHullMoving.tar.xz
2024-09-24 16:45 will Assigned To => will
2024-09-24 16:45 will Status new => resolved
2024-09-24 16:45 will Resolution open => fixed
2024-09-24 16:45 will Fixed in Version => 12
2024-09-24 16:45 will Note Added: 0013417