CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Commercial meshers] ANSA(Beta CAE)-Mesh/BC errors in simulation

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2024, 11:28
Question ANSA(Beta CAE)-Mesh/BC errors in simulation
  #1
New Member
 
Zack
Join Date: Jul 2024
Posts: 2
Rep Power: 0
MechaZ is on a distinguished road
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
(
)
*old*
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
)
;
}
)
the console log :

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
note : I am using OpenFOAM 11 and ANSA exports to OF 8 version but that's in case you want ANSA to set up the case for you so that you just press run while selecting the solvers and parameters in the ANSA interface. I don't know if downgrading would solve this issue as i'm trying to export the mesh only.
MechaZ is offline   Reply With Quote

Old   July 8, 2024, 06:26
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 647
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
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
MechaZ likes this.
tomf is offline   Reply With Quote

Old   July 9, 2024, 05:51
Default
  #3
New Member
 
Zack
Join Date: Jul 2024
Posts: 2
Rep Power: 0
MechaZ is on a distinguished road
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
MechaZ is offline   Reply With Quote

Reply

Tags
ansa, boundaries condition, export mesh, floating point exception

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 14:50.