|
[Sponsors] |
Floating point exception error when rotate the geometry |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 20, 2022, 06:48 |
Floating point exception error when rotate the geometry
|
#1 |
Member
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7 |
Hi all,
I am simulating the hull with different drift angles. When the drift angle is applied, the error of floating-point exception is found. I think the error comes from the mesh problem. I am using the openfoam7's interFoam solver and the error happens when I try to use the potentialFoam to initialize the case. Also, if the potentialFoam is skipped, the error also happens when run the interFoam: The error reported in terminal when run potentialFoam: Code:
-----------------------------------------------*/ Build : 7 Exec : potentialFoam -withFunctionObjects -parallel Date : Jun 18 2022 Time : 18:18:49 Host : "Tony" PID : 24123 I/O : uncollated Case : /home/OpenFOAM/-7/run/kcs-5d-5r-vof/VOF nProcs : 80 Slaves : 79 ( ) Pstream initialized with: floatTransfer : 0 nProcsSimpleSum : 0 commsType : nonBlocking polling iterations : 0 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Reading velocity field U Constructing pressure field p Constructing velocity potential field Phi No MRF models present Calculating potential flow createExtraFields : Adding field alpha.water to database. forces totForce: Not including porosity effects forces hull_Force: Not including porosity effects forces rudder_Force: Not including porosity effects [24] #0 Foam::error::printStack(Foam::Ostream&)[27] #0 Foam::error::printStack(Foam::Ostream&) at ??:? [24] #1 Foam::sigFpe::sigHandler(int) at ??:? [27] #1 Foam::sigFpe::sigHandler(int) at ??:? [27] #2 ? at ??:? [24] #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" [27] #3 Foam::DICPreconditioner::calcReciprocalD(Foam::Field<double>&, Foam::lduMatrix const&) in "/lib/x86_64-linux-gnu/libc.so.6" [24] #3 Foam::DICPreconditioner::calcReciprocalD(Foam::Field<double>&, Foam::lduMatrix const&) at ??:? [24] #4 Foam::DICSmoother::DICSmoother(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&) at ??:? [27] #4 Foam::DICSmoother::DICSmoother(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&) at ??:? [24] #5 Foam::lduMatrix::smoother::addsymMatrixConstructorToTable<Foam::DICSmoother>::New(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&) at ??:? [27] #5 Foam::lduMatrix::smoother::addsymMatrixConstructorToTable<Foam::DICSmoother>::New(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&) at ??:? [24] #6 Foam::lduMatrix::smoother::New(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::dictionary const&) at ??:? [24] #7 Foam::GAMGSolver::initVcycle(Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::lduMatrix::smoother>&, Foam::Field<double>&, Foam::Field<double>&) const at ??:? [27] #6 Foam::lduMatrix::smoother::New(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::dictionary const&) at ??:? [24] #8 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:? [27] #7 Foam::GAMGSolver::initVcycle(Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::lduMatrix::smoother>&, Foam::Field<double>&, Foam::Field<double>&) const at ??:? [24] #9 Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ??:? [27] #8 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:? [27] #9 Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ??:? [24] #10 Foam::fvMatrix<double>::solve(Foam::dictionary const&) at ??:? [27] #10 in "/home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/potentialFoam" [24] #11 Foam::fvMatrix<double>::solve()Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/potentialFoam" [24] #12 in "/home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/potentialFoam" [27] #11 ?Foam::fvMatrix<double>::solve() in "/home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/potentialFoam" [24] #13 __libc_start_main in "/home//OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/potentialFoam" [27] #12 in "/lib/x86_64-linux-gnu/libc.so.6" [24] #14 ?? in "/home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/potentialFoam" [27] #13 __libc_start_main[Tonnnnnnnnnnny:24183] *** Process received signal *** in "/home//OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/potentialFoam" [Tonnnnnnnnnnny:24183] Signal: Floating point exception (8) [Tonnnnnnnnnnny:24183] Signal code: (-6) [Tonnnnnnnnnnny:24183] Failing at address: 0x3e800005e77 [Tonnnnnnnnnnny:24183] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef10)[0x7f92ea224f10] [Tonnnnnnnnnnny:24183] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f92ea224e87] [Tonnnnnnnnnnny:24183] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef10)[0x7f92ea224f10] [Tonnnnnnnnnnny:24183] [ 3] /home//OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam17DICPreconditioner15calcReciprocalDERNS_5FieldIdEERKNS_9lduMatrixE+0x107)[0x7f92eb61ba97] [Tonnnnnnnnnnny:24183] [ 4] /home//OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam11DICSmootherC1ERKNS_4wordERKNS_9lduMatrixERKNS_10FieldFieldINS_5FieldEdEESB_RKNS_8UPtrListIKNS_17lduInterfaceFieldEEE+0x49)[0x7f92eb6171f9] [Tonnnnnnnnnnny:24183] [ 5] /home//OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam9lduMatrix8smoother30addsymMatrixConstructorToTableINS_11DICSmootherEE3NewERKNS_4wordERKS0_RKNS_10FieldFieldINS_5FieldEdEESE_RKNS_8UPtrListIKNS_17lduInterfaceFieldEEE+0x48)[0x7f92eb6173a8] [Tonnnnnnnnnnny:24183] [ 6] /home//OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam9lduMatrix8smoother3NewERKNS_4wordERKS0_RKNS_10FieldFieldINS_5FieldEdEESB_RKNS_8UPtrListIKNS_17lduInterfaceFieldEEERKNS_10dictionaryE+0x234)[0x7f92eb605f44] [Tonnnnnnnnnnny:24183] [ 7] /home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZNK4Foam10GAMGSolver10initVcycleERNS_7PtrListINS_5FieldIdEEEES5_RNS1_INS_9lduMatrix8smootherEEERS3_SA_+0xb1)[0x7f92eb62fbe1] [Tonnnnnnnnnnny:24183] [ 8] /homeOpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZNK4Foam10GAMGSolver5solveERNS_5FieldIdEERKS2_h+0x41e)[0x7f92eb63547e] [Tonnnnnnnnnnny:24183] [ 9] /home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so(_ZN4Foam8fvMatrixIdE15solveSegregatedERKNS_10dictionaryE+0x17d)[0x7f92ed51fa3d] [Tonnnnnnnnnnny:24183] [10] potentialFoam(_ZN4Foam8fvMatrixIdE5solveERKNS_10dictionaryE+0x15b)[0x55dba614c2ab] [Tonnnnnnnnnnny:24183] [11] potentialFoam(_ZN4Foam8fvMatrixIdE5solveEv+0x152)[0x55dba614c672] [Tonnnnnnnnnnny:24183] [12] potentialFoam(+0x2d21a)[0x55dba610621a] [Tonnnnnnnnnnny:24183] [13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f92ea207c87] [Tonnnnnnnnnnny:24183] [14] potentialFoam(+0x2e66a)[0x55dba610766a] [Tonnnnnnnnnnny:24183] *** End of error message *** in "/lib/x86_64-linux-gnu/libc.so.6" [27] #14 ?[Tonnnnnnnnnnny:24192] *** Process received signal *** [Tonnnnnnnnnnny:24192] Signal: Floating point exception (8) [Tonnnnnnnnnnny:24192] Signal code: (-6) [Tonnnnnnnnnnny:24192] Failing at address: 0x3e800005e80 [Tonnnnnnnnnnny:24192] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef10)[0x7eff726b0f10] [Tonnnnnnnnnnny:24192] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7eff726b0e87] [Tonnnnnnnnnnny:24192] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef10)[0x7eff726b0f10] [Tonnnnnnnnnnny:24192] [ 3] /homeOpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam17DICPreconditioner15calcReciprocalDERNS_5FieldIdEERKNS_9lduMatrixE+0x107)[0x7eff73aa7a97] [Tonnnnnnnnnnny:24192] [ 4] /home//OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam11DICSmootherC1ERKNS_4wordERKNS_9lduMatrixERKNS_10FieldFieldINS_5FieldEdEESB_RKNS_8UPtrListIKNS_17lduInterfaceFieldEEE+0x49)[0x7eff73aa31f9] [Tonnnnnnnnnnny:24192] [ 5] /home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam9lduMatrix8smoother30addsymMatrixConstructorToTableINS_11DICSmootherEE3NewERKNS_4wordERKS0_RKNS_10FieldFieldINS_5FieldEdEESE_RKNS_8UPtrListIKNS_17lduInterfaceFieldEEE+0x48)[0x7eff73aa33a8] [Tonnnnnnnnnnny:24192] [ 6] /home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam9lduMatrix8smoother3NewERKNS_4wordERKS0_RKNS_10FieldFieldINS_5FieldEdEESB_RKNS_8UPtrListIKNS_17lduInterfaceFieldEEERKNS_10dictionaryE+0x234)[0x7eff73a91f44] [Tonnnnnnnnnnny:24192] [ 7] /home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZNK4Foam10GAMGSolver10initVcycleERNS_7PtrListINS_5FieldIdEEEES5_RNS1_INS_9lduMatrix8smootherEEERS3_SA_+0xb1)[0x7eff73abbbe1] [Tonnnnnnnnnnny:24192] [ 8] /home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZNK4Foam10GAMGSolver5solveERNS_5FieldIdEERKS2_h+0x41e)[0x7eff73ac147e] [Tonnnnnnnnnnny:24192] [ 9] /home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so(_ZN4Foam8fvMatrixIdE15solveSegregatedERKNS_10dictionaryE+0x17d)[0x7eff759aba3d] [Tonnnnnnnnnnny:24192] [10] potentialFoam(_ZN4Foam8fvMatrixIdE5solveERKNS_10dictionaryE+0x15b)[0x55bd60b762ab] [Tonnnnnnnnnnny:24192] [11] potentialFoam(_ZN4Foam8fvMatrixIdE5solveEv+0x152)[0x55bd60b76672] [Tonnnnnnnnnnny:24192] [12] potentialFoam(+0x2d21a)[0x55bd60b3021a] [Tonnnnnnnnnnny:24192] [13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7eff72693c87] [Tonnnnnnnnnnny:24192] [14] potentialFoam(+0x2e66a)[0x55bd60b3166a] [Tonnnnnnnnnnny:24192] *** End of error message *** in "/home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/potentialFoam" -------------------------------------------------------------------------- mpirun noticed that process rank 24 with PID 0 on node Tonnnnnnnnnnny exited on signal 8 (Floating point exception). Code:
Build : 7 Exec : interFoam Date : Jun 18 2022 Time : 18:19:41 Host : "Tony" PID : 24465 I/O : uncollated Case : /home/OpenFOAM/-7/run/kcs-5d-5r-vof/VOF nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Selecting dynamicFvMesh staticFvMesh PIMPLE: No convergence criteria found PIMPLE: Operating solver in transient mode with 1 outer corrector PIMPLE: Operating solver in PISO mode Reading field p_rgh Reading field U Reading/calculating face flux field phi Reading transportProperties Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian Selecting turbulence model type RAS Selecting RAS turbulence model kOmegaSST Selecting patchDistMethod meshWave RAS { RASModel kOmegaSST; turbulence on; printCoeffs on; alphaK1 0.85; alphaK2 1; alphaOmega1 0.5; alphaOmega2 0.856; gamma1 0.555556; gamma2 0.44; beta1 0.075; beta2 0.0828; betaStar 0.09; a1 0.31; b1 1; c1 10; F3 false; } Reading g Reading hRef Calculating field g.h No MRF models present No finite volume options present #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::DICPreconditioner::calcReciprocalD(Foam::Field<double>&, Foam::lduMatrix const&) at ??:? #4 Foam::DICSmoother::DICSmoother(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&) at ??:? #5 Foam::lduMatrix::smoother::addsymMatrixConstructorToTable<Foam::DICSmoother>::New(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&) at ??:? #6 Foam::lduMatrix::smoother::New(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::dictionary const&) at ??:? #7 Foam::GAMGSolver::initVcycle(Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::lduMatrix::smoother>&, Foam::Field<double>&, Foam::Field<double>&) const at ??:? #8 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:? #9 Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ??:? #10 Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/interFoam" #11 Foam::fvMatrix<double>::solve() in "/home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/interFoam" #12 ? in "/home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/interFoam" #13 ? in "/home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/interFoam" #14 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #15 ? in "/home/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/bin/interFoam" Floating point exception (core dumped) Code:
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*---------------------------------------------------------------------------*/ Build : 7 Exec : checkMesh Date : Jun 20 2022 Time : 10:13:08 Host : "Tonnnnnnnnnnny" PID : 20146 I/O : uncollated Case : /home/OpenFOAM7/run/kcs-5d-5r-vof/VOF nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create polyMesh for time = 0 Time = 0 Mesh stats points: 3108240 faces: 8916909 internal faces: 8857243 cells: 2906353 faces per cell: 6.11562 boundary patches: 8 point zones: 0 face zones: 0 cell zones: 0 Overall number of cells of each type: hexahedra: 2707592 prisms: 6247 wedges: 0 pyramids: 0 tet wedges: 101 tetrahedra: 0 polyhedra: 192413 Breakdown of polyhedra by number of faces: faces number of cells 4 2618 5 2265 6 10700 7 89913 8 11424 9 71683 10 761 11 359 12 2253 13 46 14 46 15 336 16 2 17 1 18 6 Checking topology... Boundary definition OK. Cell to face addressing OK. Point usage OK. Upper triangular ordering OK. Face vertices OK. *Number of regions: 11 The mesh has multiple regions which are not connected by any face. <<Writing region information to "0/cellToRegion" <<Writing region 0 with 2906343 cells to cellSet region0 <<Writing region 1 with 1 cells to cellSet region1 <<Writing region 2 with 1 cells to cellSet region2 <<Writing region 3 with 1 cells to cellSet region3 <<Writing region 4 with 1 cells to cellSet region4 <<Writing region 5 with 1 cells to cellSet region5 <<Writing region 6 with 1 cells to cellSet region6 <<Writing region 7 with 1 cells to cellSet region7 <<Writing region 8 with 1 cells to cellSet region8 <<Writing region 9 with 1 cells to cellSet region9 <<Writing region 10 with 1 cells to cellSet region10 Checking patch topology for multiply connected surfaces... Patch Faces Points Surface topology atmosphere 3952 4115 ok (non-closed singly connected) inlet 1280 1353 ok (non-closed singly connected) outlet 800 861 ok (non-closed singly connected) bottom 940 1008 ok (non-closed singly connected) side 800 861 ok (non-closed singly connected) midPlane 800 861 ok (non-closed singly connected) hull 33940 37082 ok (non-closed singly connected) rudder 17154 17535 ok (non-closed singly connected) Checking geometry... Overall domain bounding box (-14 -21 -7) (28 21 3.5) Mesh has 3 geometric (non-empty/wedge) directions (1 1 1) Mesh has 3 solution (non-empty) directions (1 1 1) Boundary openness (2.75452e-17 -5.16445e-17 9.76081e-16) OK. Max cell openness = 1.87665e-15 OK. Max aspect ratio = 900.091 OK. Minimum face area = 2.53816e-08. Maximum face area = 4.41478. Face area magnitudes OK. Min volume = 4.8239e-13. Max volume = 4.91023. Total volume = 18519.1. Cell volumes OK. Mesh non-orthogonality Max: 69.8864 average: 6.38148 Non-orthogonality check OK. Face pyramids OK. ***Max skewness = 7.84018, 21 highly skew faces detected which may impair the quality of the results <<Writing 21 skew faces to set skewFaces Coupled point location match (average 0) OK. Failed 1 mesh checks. End Please let me know if you have any idea how to resolve this error, any hint will be appreciated! Many thanks, Tony |
|
June 20, 2022, 06:49 |
|
#2 |
Member
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7 |
I suspect the error is because snappyHexMesh, the file of SHM is attached for reference:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object snappyHexMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Which of the steps to run castellatedMesh true; snap true; addLayers true; // Geometry. Definition of all surfaces. All surfaces are of class // searchableSurface. // Surfaces are used // - to specify refinement for any mesh cell intersecting it // - to specify refinement for any mesh cell inside/outside/near // - to 'snap' the mesh boundary to the surface geometry { KCS_modelScale.stl.gz { type triSurfaceMesh; name hull; patchInfo { type wall; } } kcs_rudder_ModelScale_5.stl { type triSurfaceMesh; name rudder; patchInfo { type wall; } } /*appendage_stl_name_1 { type triSurfaceMesh; name appendage_name_1; patchInfo { type wall; } }*/ /*appendage_stl_name_2 { type triSurfaceMesh; name appendage_name_2; patchInfo { type wall; } }*/ /*appendage_stl_name_3 { type triSurfaceMesh; name appendage_name_3; patchInfo { type wall; } }*/ /*appendage_stl_name_4 { type triSurfaceMesh; name appendage_name_4; patchInfo { type wall; } }*/ /*appendage_stl_name_5 { type triSurfaceMesh; name appendage_name_5; patchInfo { type wall; } }*/ /*appendage_stl_name_6 { type triSurfaceMesh; name appendage_name_6; patchInfo { type wall; } }*/ /*appendage_stl_name_7 { type triSurfaceMesh; name appendage_name_7; patchInfo { type wall; } }*/ /*appendage_stl_name_8 { type triSurfaceMesh; name appendage_name_8; patchInfo { type wall; } }*/ /*appendage_stl_name_9 { type triSurfaceMesh; name appendage_name_9; patchInfo { type wall; } }*/ /*wakeBox { type searchableBox; min (wakebox_mix wakebox_miy wakebox_miz); max (wakebox_max wakebox_may wakebox_maz); }*/ /*bowBox { type searchableBox; min (bowbox_mix bowbox_miy bowbox_miz); max (bowbox_max bowbox_may bowbox_maz); }*/ /*bigBox { type searchableBox; min (bigbox_mix bigbox_miy bigbox_miz); max (bigbox_max bigbox_may bigbox_maz); }*/ /*propTube { type searchableCylinder; point1 (prop_mix prop_miy prop_miz); point2 (prop_max prop_may prop_maz); radius prop_rad; }*/ }; // Settings for the castellatedMesh generation. castellatedMeshControls { // Refinement parameters // ~~~~~~~~~~~~~~~~~~~~~ // If local number of cells is >= maxLocalCells on any processor // switches from from refinement followed by balancing // (current method) to (weighted) balancing before refinement. maxLocalCells 1000000000; // Overall cell limit (approximately). Refinement will stop immediately // upon reaching this number so a refinement level might not complete. // Note that this is the number of cells before removing the part which // is not 'visible' from the keepPoint. The final number of cells might // actually be a lot less. maxGlobalCells 200000000; // The surface refinement loop might spend lots of iterations refining just a // few cells. This setting will cause refinement to stop if <= minimumRefine // are selected for refinement. Note: it will at least do one iteration // (unless the number of cells to refine is 0) minRefinementCells 0; // Number of buffer layers between different levels. // 1 means normal 2:1 refinement restriction, larger means slower // refinement. nCellsBetweenLevels 4; // Explicit feature edge refinement // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Specifies a level for any cell intersected by its edges. // This is a featureEdgeMesh, read from constant/triSurface for now. features ( { file "hull.eMesh"; level 0; } { file "rudder.eMesh"; level 3; } /*{ file "appendage_name_1.eMesh"; level r_alevelm_1; }*/ /*{ file "appendage_name_2.eMesh"; level r_alevelm_2; }*/ /*{ file "appendage_name_3.eMesh"; level r_alevelm_3; }*/ /*{ file "appendage_name_4.eMesh"; level r_alevelm_4; }*/ /*{ file "appendage_name_5.eMesh"; level r_alevelm_5; }*/ /*{ file "appendage_name_6.eMesh"; level r_alevelm_6; }*/ /*{ file "appendage_name_7.eMesh"; level r_alevelm_7; }*/ /*{ file "appendage_name_8.eMesh"; level r_alevelm_8; }*/ /*{ file "appendage_name_9.eMesh"; level r_alevelm_9; }*/ ); // Surface based refinement // ~~~~~~~~~~~~~~~~~~~~~~~~ // Specifies two levels for every surface. The first is the minimum level, // every cell intersecting a surface gets refined up to the minimum level. // The second level is the maximum level. Cells that 'see' multiple // intersections where the intersections make an // angle > resolveFeatureAngle get refined up to the maximum level. refinementSurfaces { hull { // Surface-wise min and max refinement level level (0 0); } rudder { // Surface-wise min and max refinement level level (3 3); } /*appendage_name_1 { // Surface-wise min and max refinement level level (r_alevelm_1 r_alevelm_1); }*/ /*appendage_name_2 { // Surface-wise min and max refinement level level (r_alevelm_2 r_alevelm_2); }*/ /*appendage_name_3 { // Surface-wise min and max refinement level level (r_alevelm_3 r_alevelm_3); }*/ /*appendage_name_4 { // Surface-wise min and max refinement level level (r_alevelm_4 r_alevelm_4); }*/ /*appendage_name_5 { // Surface-wise min and max refinement level level (r_alevelm_5 r_alevelm_5); }*/ /*appendage_name_6 { // Surface-wise min and max refinement level level (r_alevelm_6 r_alevelm_6); }*/ /*appendage_name_7 { // Surface-wise min and max refinement level level (r_alevelm_7 r_alevelm_7); }*/ /*appendage_name_8 { // Surface-wise min and max refinement level level (r_alevelm_8 r_alevelm_8); }*/ /*appendage_name_9 { // Surface-wise min and max refinement level level (r_alevelm_9 r_alevelm_9); }*/ } resolveFeatureAngle 15; // Region-wise refinement // ~~~~~~~~~~~~~~~~~~~~~~ // Specifies refinement level for cells in relation to a surface. One of // three modes // - distance. 'levels' specifies per distance to the surface the // wanted refinement level. The distances need to be specified in // descending order. // - inside. 'levels' is only one entry and only the level is used. All // cells inside the surface get refined up to the level. The surface // needs to be closed for this to be possible. // - outside. Same but cells outside. refinementRegions { /*wakeBox { mode inside; levels ((1E15 0)); }*/ /*bowBox { mode inside; levels ((1E15 0)); }*/ /*bigBox { mode inside; levels ((1E15 0)); }*/ /*propTube { mode inside; levels ((1E15 r_levelp)); }*/ } // Mesh selection // ~~~~~~~~~~~~~~ // After refinement patches get added for all refinementSurfaces and // all cells intersecting the surfaces get put into these patches. The // section reachable from the locationInMesh is kept. // NOTE: This point should never be on a face, always inside a cell, even // after refinement. locationInMesh (17.75978400000000000000 21.39908400000000000000 3.87192100000000000000); // Whether any faceZones (as specified in the refinementSurfaces) // are only on the boundary of corresponding cellZones or also allow // free-standing zone faces. Not used if there are no faceZones. allowFreeStandingZoneFaces true; } // Settings for the snapping. snapControls { //- Number of patch smoothing iterations before finding correspondence // to surface nSmoothPatch 3; //- Relative distance for points to be attracted by surface feature point // or edge. True distance is this factor times local // maximum edge length. // tolerance 4.0; tolerance 1.0; //- Number of mesh displacement relaxation iterations. nSolveIter 100; //- Maximum number of snapping relaxation iterations. Should stop // before upon reaching a correct mesh. nRelaxIter 5; nFeatureSnapIter 10; } // Settings for the layer addition. addLayersControls { // Are the thickness parameters below relative to the undistorted // size of the refined cell outside layer (true) or absolute sizes (false). relativeSizes false; // Per final patch (so not geometry!) the layer information layers { hull { nSurfaceLayers 28; } rudder { nSurfaceLayers 18; } /*appendage_name_1 { nSurfaceLayers n_alayers_1; }*/ /*appendage_name_2 { nSurfaceLayers n_alayers_2; }*/ /*appendage_name_3 { nSurfaceLayers n_alayers_3; }*/ /*appendage_name_4 { nSurfaceLayers n_alayers_4; }*/ /*appendage_name_5 { nSurfaceLayers n_alayers_5; }*/ /*appendage_name_6 { nSurfaceLayers n_alayers_6; }*/ /*appendage_name_7 { nSurfaceLayers n_alayers_7; }*/ /*appendage_name_8 { nSurfaceLayers n_alayers_8; }*/ /*appendage_name_9 { nSurfaceLayers n_alayers_9; }*/ } // Expansion factor for layer mesh expansionRatio 1.2; // Wanted thickness of final added cell layer. If multiple layers // is the thickness of the layer furthest away from the wall. // See relativeSizes parameter. firstLayerThickness .00002758287143393045; // Minimum thickness of cell layer. If for any reason layer // cannot be above minThickness do not add layer. // See relativeSizes parameter. minThickness .00000005516574286786; // If points get not extruded do nGrow layers of connected faces that are // also not grown. This helps convergence of the layer addition process // close to features. // Note: changed(corrected) w.r.t 17x! (didn't do anything in 17x) nGrow 0; // Advanced settings // When not to extrude surface. 0 is flat surface, 90 is when two faces // are perpendicular featureAngle 30; // Maximum number of snapping relaxation iterations. Should stop // before upon reaching a correct mesh. nRelaxIter 5; // Number of smoothing iterations of surface normals nSmoothSurfaceNormals 1; // Number of smoothing iterations of interior mesh movement direction nSmoothNormals 5; // Smooth layer thickness over surface patches nSmoothThickness 10; // Stop layer growth on highly warped cells maxFaceThicknessRatio 0.7; // Reduce layer growth where ratio thickness to medial // distance is large maxThicknessToMedialRatio 0.3; // Angle used to pick up medial axis points // Note: changed(corrected) w.r.t 17x! 90 degrees corresponds to 130 in 17x. minMedianAxisAngle 90; // Create buffer region for new layer terminations nBufferCellsNoExtrude 0; // Overall max number of layer addition iterations. The mesher will exit // if it reaches this number of iterations; possibly with an illegal // mesh. nLayerIter 50; // Max number of iterations after which relaxed meshQuality controls // get used. Up to nRelaxIter it uses the settings in meshQualityControls, // after nRelaxIter it uses the values in meshQualityControls::relaxed. nRelaxedIter 20; } // Generic mesh quality settings. At any undoable phase these determine // where to undo. meshQualityControls { #include "meshQualityDict" } // Advanced // Flags for optional output // 0 : only write final meshes // 1 : write intermediate meshes // 2 : write volScalarField with cellLevel for postprocessing // 4 : write current intersections as .obj files debug 0; // Merge tolerance. Is fraction of overall bounding box of initial mesh. // Note: the write tolerance needs to be higher than this. mergeTolerance 1E-6; // ************************************************************************* // |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Floating Point exception (core dumped) chtMultiRegionFoam | ayu12 | OpenFOAM Running, Solving & CFD | 1 | October 12, 2021 12:31 |
icoFoam floating point exception (8) | leizhao512 | OpenFOAM Running, Solving & CFD | 7 | November 1, 2018 12:43 |
A floating point exception has occurred: floating point exception [Overflow]. | starlight | STAR-CCM+ | 4 | May 4, 2016 10:08 |
A floating point exception - SEM Model | yansheng | STAR-CCM+ | 1 | April 4, 2016 05:57 |
Floating point exception from twoPhaseEulerFoam | openfoammaofnepo | OpenFOAM Running, Solving & CFD | 1 | March 19, 2016 14:56 |