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

Rhocentralfoam RAE2822 airfoil simulation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 1, 2018, 05:33
Default Rhocentralfoam RAE2822 airfoil simulation
  #1
New Member
 
madz
Join Date: Sep 2018
Posts: 15
Rep Power: 2
maddy11 is on a distinguished road
I'm simulating transonic flow around RAE2822 aerofoil in rhocentralfoam and the simulation has been running for the last 44 hours. But the time has decreased to just 0.0077 s. I have given adjustTimestep as Yes. Without this flag, errors are produced.


The deltaT is 0.004 and maxCo is 0.2. But the deltaT shown in the simulation is in e-09.
maddy11 is offline   Reply With Quote

Old   October 2, 2018, 15:15
Default
  #2
New Member
 
Vince
Join Date: Mar 2017
Location: Glasgow, UK
Posts: 27
Rep Power: 3
hyFoam is on a distinguished road
Since you set adjustTimeStep to True, the maxCo entry is used instead of the fixed deltaT to calculate the simulation time step. This latter value depends on the grid size and velocity field.


When fixed to 1e-4 sec, your time step is too large by several orders of magnitude and your simulation will crash.
hyFoam is offline   Reply With Quote

Old   October 3, 2018, 10:09
Default
  #3
New Member
 
madz
Join Date: Sep 2018
Posts: 15
Rep Power: 2
maddy11 is on a distinguished road
thank you for your reply. i tried changing the deltaT and commenting the adjustTimestep but it is only running with deltaT as small as 1*e-09 sec.
as i told earlier thread that deltaT is of the same order when adjusttimestep was on.

for this simulation i am using SA turbulence model.

my grid have y+=1 and first grid spaceing off the wall around 4*e-06m.

can you please suggest what is the reason for this very small deltaT taken by the code.Is it because of the fine grid?
how can I use larger deltaT because my simulation is taking long time.


this is my controlDict file
------------------------------------------------------------------------------------------------------

application rhoCentralFoam;

startFrom latestTime;

//startTime 0.0223313653;

stopAt endTime;

endTime 1;

deltaT 0.001;

writeControl adjustableRunTime;

writeInterval 1e-03;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

adjustTimeStep yes;

maxCo 0.85;

maxDeltaT 1;
-------------------------------------------------------------------------------
maddy11 is offline   Reply With Quote

Old   October 3, 2018, 13:16
Default
  #4
New Member
 
Vince
Join Date: Mar 2017
Location: Glasgow, UK
Posts: 27
Rep Power: 3
hyFoam is on a distinguished road
Hi Maddy,


The equations you are solving are not unconditionally stable, the simulation will diverge if the time step is too large. In rhoCentralFoam, you must ensure that the maximum Courant number do not exceed 0.5. Thus, your initial maxCo of 0.2 with adjustTimeStep activated was the correct setting.



Please consult a good textbook or lecture notes on numerical methods for high-speed (compressible) flows for more details.


Cheers,
Vincent
hyFoam is offline   Reply With Quote

Old   October 4, 2018, 00:53
Default
  #5
New Member
 
madz
Join Date: Sep 2018
Posts: 15
Rep Power: 2
maddy11 is on a distinguished road
can you please tell me how can i use larger deltaT for these simulations. it is only allowing deltaT as low as 1e-09 and it is taking long time to reach at steady state
maddy11 is offline   Reply With Quote

Old   October 4, 2018, 03:27
Default
  #6
New Member
 
Vince
Join Date: Mar 2017
Location: Glasgow, UK
Posts: 27
Rep Power: 3
hyFoam is on a distinguished road
To speed up your simulation, you may

1) Use a coarser grid*
2) Use Local Time Stepping (LTS)*
3) Use more CPUs / submit your job on a HPC



but keep your maxCo to 0.2.


*might not be a satisfactory solution in your case.

Last edited by hyFoam; October 10, 2018 at 03:26.
hyFoam is offline   Reply With Quote

Old   October 10, 2018, 00:07
Default
  #7
New Member
 
madz
Join Date: Sep 2018
Posts: 15
Rep Power: 2
maddy11 is on a distinguished road
Hi Vince,

Thank you for ur reply. By changing the grid, I was able to get lesser time.

Maddy
maddy11 is offline   Reply With Quote

Old   October 10, 2018, 03:31
Default
  #8
New Member
 
Vince
Join Date: Mar 2017
Location: Glasgow, UK
Posts: 27
Rep Power: 3
hyFoam is on a distinguished road
Hi Maddy,


That's good to know. You could do a grid sensitivity analysis now, i.e., refining the grid by a given factor where it matters (near the wall here) and see how meaningful wall quantities change.



Cheers,
Vince
hyFoam is offline   Reply With Quote

Old   October 11, 2018, 01:04
Default
  #9
New Member
 
madz
Join Date: Sep 2018
Posts: 15
Rep Power: 2
maddy11 is on a distinguished road
Yes Vince, I can begin that now.

Maddy
maddy11 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Airfoil simulation - Divergence of the results - Mesh or geometry problem ? Pol.P FLUENT 8 May 28, 2015 05:54
airfoil 2D simulation: position of lift force on the airfoil Koenieboy Main CFD Forum 2 March 13, 2012 06:44
Airfoil simulation using moving wall Alejandro NUMECA 9 November 4, 2008 02:00
NO STAGNATION POINT FOR AIRFOIL SIMULATION Rif Main CFD Forum 6 February 4, 2008 07:33
Compressible transonic airfoil RAE2822 simulation Stefano Siemens 9 June 21, 2006 10:47


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