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

Not an striaghtforward issue

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2021, 07:53
Default Not an striaghtforward issue
  #1
New Member
 
Sandro Brad Martinez Sardon
Join Date: Sep 2021
Posts: 16
Rep Power: 4
sandrobrad is on a distinguished road
HI buddies, I would like to ask you something but first let me give u context.

I am a newbie using OPENFOAM. I've done a simulation of a flow on naca0012 using the spalartAllmaras turbulence modeland given an specific boundary conditions(I'm gonna attach all my case) . The results was quite good. However,I want to simulate that airfoil using the komegaSST. Embrace urselves cause I am going to ask you some questions:
1) How can i calculate the boundary conditions and wall conditions for omega and k ? I mean, i would like to know which certain of formulas are appropiated for AN AIRFOIL. I've emphasized that bc I come across a lot of formulas that involves turbulence lenght scale, initial turbulence intensity and I don't know if that values are dependent on the geometry or the flow behaviour.
2) As a consequence of not knowing the boundary conditions , I tried with the BC of one OPENFOAM'S tutorial.Eventually , i got this message and I dont know where I can start.





Code:
smoothSolver:  Solving for Ux, Initial residual = 0.396356, Final residual = 0.0210701, No Iterations 36
smoothSolver:  Solving for Uy, Initial residual = 0.443888, Final residual = 0.0349726, No Iterations 22
GAMG:  Solving for p, Initial residual = 1, Final residual = 0.0829205, No Iterations 5
time step continuity errors : sum local = 4.0495e+18, global = -5.2526e+13, cumulative = -5.25259e+13
smoothSolver:  Solving for omega, Initial residual = 0.442589, Final residual = 2.4382e-05, No Iterations 1
bounding omega, min: -1.04133e+20 max: 1.32147e+26 average: 1.65136e+21
smoothSolver:  Solving for k, Initial residual = 0.276971, Final residual = 0.00730411, No Iterations 2
bounding k, min: -107872 max: 611891 average: 239.716
ExecutionTime = 7.62 s  ClockTime = 8 s

forceCoeffs forceCoeffs1 execute:
    Coefficients
        Cd       : -8.50109e+32    (pressure: -8.50109e+32    viscous: 5.10581e+22)
        Cs       : 2.30614e+14    (pressure: 2.73881e+14    viscous: -4.32663e+13)
        Cl       : 4.16906e+32    (pressure: 4.16906e+32    viscous: -1.91343e+24)
        CmRoll       : -6.25359e+31    (pressure: -6.25359e+31    viscous: 2.87014e+23)
        CmPitch       : 2.92373e+32    (pressure: 2.92373e+32    viscous: -1.37348e+24)
        CmYaw       : -1.27516e+32    (pressure: -1.27516e+32    viscous: 7.65872e+21)
        Cd(f)    : -4.8759e+32
        Cd(r)    : -3.62518e+32
        Cs(f)    : -1.27516e+32
        Cs(r)    : 1.27516e+32
        Cl(f)    : 5.00826e+32
        Cl(r)    : -8.392e+31
Time = 8

smoothSolver:  Solving for Ux, Initial residual = 0.681064, Final residual = 0.0622282, No Iterations 56
smoothSolver:  Solving for Uy, Initial residual = 0.688296, Final residual = 0.0423941, No Iterations 56
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in /lib/x86_64-linux-gnu/libpthread.so.0
#3  Foam::GAMGSolver::scale(Foam::Field<double>&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::Field<double> const&, unsigned char) const at ??:?
#4  Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMatrix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const at ??:?
#5  Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#6  Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ??:?
#7  Foam::fvMatrix<double>::solveSegregatedOrCoupled(Foam::dictionary const&) at ??:?
#8  Foam::fvMesh::solve(Foam::fvMatrix<double>&, Foam::dictionary const&) const at ??:?
#9  ? in /usr/lib/openfoam/openfoam2106/platforms/linux64GccDPInt32Opt/bin/simpleFoam
#10  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#11  ? in /usr/lib/openfoam/openfoam2106/platforms/linux64GccDPInt32Opt/bin/simpleFoam
Floating point exception (core dumped)
That was my issues . Do you have any idea about what's happening? Thanks in advance.

Last edited by sandrobrad; September 29, 2021 at 11:09.
sandrobrad is offline   Reply With Quote

Old   October 1, 2021, 04:10
Default
  #2
Member
 
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 75
Rep Power: 4
night-hawk is on a distinguished road
You probably have issue with boundary condition or schemes you are using.

If you are doing transient simulation consider reducing timestep value.
night-hawk is offline   Reply With Quote

Old   October 2, 2021, 04:18
Default
  #3
New Member
 
Sandro Brad Martinez Sardon
Join Date: Sep 2021
Posts: 16
Rep Power: 4
sandrobrad is on a distinguished road
HI night-hawk,
I've already checked my boundary conditions, now I am going to check my schemes. Recently I noticed that the solver runs well if I increase my desired y+ value.Honestly I don't know if it is related with my problem. Anyway, could you help me telling me how you can calculate boundary values for k and omega on an airfoil case? . Thanks in advance.
Best Regards.
sandrobrad is offline   Reply With Quote

Old   October 2, 2021, 05:40
Default
  #4
Member
 
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 75
Rep Power: 4
night-hawk is on a distinguished road
Quote:
Originally Posted by sandrobrad View Post
HI night-hawk,
I've already checked my boundary conditions, now I am going to check my schemes. Recently I noticed that the solver runs well if I increase my desired y+ value.Honestly I don't know if it is related with my problem. Anyway, could you help me telling me how you can calculate boundary values for k and omega on an airfoil case? . Thanks in advance.
Best Regards.

Here you go
https://www.cfd-online.com/Tools/turbulence.php


Please correct me if I don't understand your question.
night-hawk is offline   Reply With Quote

Old   October 2, 2021, 14:34
Default
  #5
New Member
 
Sandro Brad Martinez Sardon
Join Date: Sep 2021
Posts: 16
Rep Power: 4
sandrobrad is on a distinguished road
Hello again,
I meant in my question that I need an specific number called Turbulence length scale and I don't know how to calculate it in the case of an freestream surrounding an airfoil. I found that value only in pipeflow case. Thanks for your reply btw.
sandrobrad is offline   Reply With Quote

Reply

Tags
komegasst model, openfoam2106


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
Issue on zeroGradient BC for system rotation magnushaese OpenFOAM Running, Solving & CFD 2 January 28, 2022 13:43
rhoCentralFoam inviscid airfoil issue (Foam::error::printStack(Foam::Ostream&) at ??) kmkb21 OpenFOAM Running, Solving & CFD 1 March 1, 2018 01:07
Prism Layer - Core Mesh Boundary Issue InfernoxCJC STAR-CCM+ 7 November 21, 2017 15:46
foamToTecplot360 issue with multiregion solvers manuc OpenFOAM Post-Processing 2 November 21, 2016 13:51
Pressure boundary condition issue Vijay FLUENT 0 April 6, 2012 13:35


All times are GMT -4. The time now is 17:09.