|
[Sponsors] |
[Commercial meshers] ANSA(Beta CAE)-Mesh/BC errors in simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 5, 2024, 11:28 |
ANSA(Beta CAE)-Mesh/BC errors in simulation
|
#1 |
New Member
Zack
Join Date: Jul 2024
Posts: 2
Rep Power: 0 |
Hello everyone, i'm a student and kind of new to CFD. I properly ran a few 2D airfoil simulations using GMSH, OpenFOAM, then Paraview.
Now i'm trying to use ANSA in my internship to mesh, i'm having trouble exporting to OpenFOAM. I'm getting floating point exceptions after 380 increments of simulation. I tried matching the exact boundary condition, and initial conditions i used previously in the working simulation but i think the generated polyMesh file by ANSA is missing something. I noticed the cellZones file is empty compared to the functioning one : I don't know how to set those "cell zones" in ANSA and when i look at the first few increments of the simulation in Paraview it looks broken and the P, U values are completely off. I'd be grateful if someone could help me figure out how to solve this issue. *new* Code:
FoamFile { version 2.0; format ascii; class regIOobject; location ""; object cellZones; } 0 ( ) Code:
FoamFile { format ascii; class regIOobject; location "constant/polyMesh"; object cellZones; } 1 ( Fluid { type cellZone; cellLabels List<label> 31595 ( 0 1 2 3 . . *etc* . 31592 31593 31594 ) ; } ) Code:
Time = 395s smoothSolver: Solving for Ux, Initial residual = 0.000900726, Final residual = 4.9224e-05, No Iterations 4 smoothSolver: Solving for Uy, Initial residual = 0.00448011, Final residual = 0.000240954, No Iterations 4 GAMG: Solving for p, Initial residual = 4.81564e-08, Final residual = 4.81564e-08, No Iterations 0 time step continuity errors : sum local = 321.603, global = 5.64817, cumulative = 484.134 #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::pow3(Foam::Field<double>&, Foam::UList<double> const&) at ??:? #4 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::pow3<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:? #5 Foam::RASModels::SpalartAllmaras<Foam::incompressibleMomentumTransportModel>::fv1(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) const at ??:? #6 Foam::RASModels::SpalartAllmaras<Foam::incompressibleMomentumTransportModel>::correct() at ??:? #7 ? in "/opt/openfoam11/platforms/linux64GccDPInt32Opt/bin/foamRun" #8 ? in "/lib/x86_64-linux-gnu/libc.so.6" #9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #10 ? in "/opt/openfoam11/platforms/linux64GccDPInt32Opt/bin/foamRun" Floating point exception |
|
July 8, 2024, 06:26 |
|
#2 |
Senior Member
|
Hi,
ANSA used to export a cellZones file even if all cells were in the same (and only) volume in ANSA. In more recent versions the export does not do it like that, it only exports cellZones if there are more than 1 solid pid in ANSA. You should run checkMesh to see if the newly exported mesh has the same quality as the original one. Unless you have a setup where you run some constraints in this cellZone that stabilize the simulation, I would not expect any differences. Regards, Tom |
|
July 9, 2024, 05:51 |
|
#3 |
New Member
Zack
Join Date: Jul 2024
Posts: 2
Rep Power: 0 |
Thank you for your answer Tom,
The case I was working on was using an Inlet/Outlet BC and it somehow didn't set the PIDs properly which was giving me floating point exceptions when I run the simulation, I now found another tutorial that uses the far field BC approach and apparently it's solving correctly and not giving me weird pressure and velocity values. I thought that the export format of ANSA didn't work with the future versions of openFOAM at first, I don't know exactly what fixed the issue but as you said cellZones was not the issue here. Regards, Zack |
|
Tags |
ansa, boundaries condition, export mesh, floating point exception |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building OpenFOAM1.7.0 from source | ata | OpenFOAM Installation | 46 | March 6, 2022 14:21 |
time step continuity problem in VAWT simulation | lpz_michele | OpenFOAM Running, Solving & CFD | 5 | February 22, 2018 20:50 |
Unexpected deltaT decrease in pimpleFoam simulation | robyTKD | OpenFOAM Running, Solving & CFD | 9 | June 27, 2014 07:52 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 14:58 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |