CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Full-3D far too slow but not Quasi-3D

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2023, 17:15
Unhappy Full-3D far too slow but not Quasi-3D
  #1
New Member
 
Join Date: Nov 2023
Posts: 2
Rep Power: 0
ThinFlatPlate is on a distinguished road
Hello CFD community,

I am trying to simulate a uniform laminar flow normal to a thin flat plate. It's a lot like the classic circular cylinder case with which we are all familiar, except the geometry of the bluff body is different. When I run quasi-3D simulations, they run very fast, but full-3D simulations on the same mesh extruded take more than 10 times as long - too long to be of any use. I am aware that quasi-3D should be faster, but not by this much. I have tried several different mesh designs, different fluid solvers which use different mathematical techniques, different numbers of cores and different CPU models, but nothing has worked yet. I even noticed the same thing with the circular cylinder. I must be setting up my model wrong because I know much more intense models are possible on very few cores. I just haven't been able to find the bad actor. Also, I need full control over all of my boundary conditions so I require the use of full-3D simulations.

I would be very grateful for any help or insight you can provide.

Best regards
ThinFlatPlate is offline   Reply With Quote

Old   November 20, 2023, 17:56
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by ThinFlatPlate View Post
Hello CFD community,

I am trying to simulate a uniform laminar flow normal to a thin flat plate. It's a lot like the classic circular cylinder case with which we are all familiar, except the geometry of the bluff body is different. When I run quasi-3D simulations, they run very fast, but full-3D simulations on the same mesh extruded take more than 10 times as long - too long to be of any use. I am aware that quasi-3D should be faster, but not by this much. I have tried several different mesh designs, different fluid solvers which use different mathematical techniques, different numbers of cores and different CPU models, but nothing has worked yet. I even noticed the same thing with the circular cylinder. I must be setting up my model wrong because I know much more intense models are possible on very few cores. I just haven't been able to find the bad actor. Also, I need full control over all of my boundary conditions so I require the use of full-3D simulations.

I would be very grateful for any help or insight you can provide.

Best regards



Some questions:


- are you prescribing periodic BCs in the third direction?
- do you see a vortex shedding in the 3D problem but not in the 2d?
- the flow become fully 3D and unsteady?


Note that:
- the stability constraint could require a smaller time step in the fully 3D solver.
- the development of the unsteady flow can be a further reason.


I am not suprised by the fact that the 3D case is slower. However, you should provide all the details of yours simulation.
FMDenaro is offline   Reply With Quote

Old   November 20, 2023, 20:25
Default
  #3
New Member
 
Join Date: Nov 2023
Posts: 2
Rep Power: 0
ThinFlatPlate is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Some questions:


- are you prescribing periodic BCs in the third direction?
- do you see a vortex shedding in the 3D problem but not in the 2d?
- the flow become fully 3D and unsteady?


Note that:
- the stability constraint could require a smaller time step in the fully 3D solver.
- the development of the unsteady flow can be a further reason.


I am not suprised by the fact that the 3D case is slower. However, you should provide all the details of yours simulation.
Thank you for your response. To your questions:
1. Yes. I am prescribing periodic BCs in the third direction for now, but I will change to different BCs in the third direction once I have validated the velocity field statistics.
2. I see vortex shedding in both the 2D and 3D problems.
3. Yes and yes. The flow is fully 3D and unsteady at this Reynolds number (400).

I have some questions about your notes:
1. How much smaller should the time step be in full-3D than in quasi-3D? Also, could you be more specific about what you mean by the "stability constraint"?
2. Why would the unsteadiness in the flow not slow down the quasi-3D simulations to the same degree?

I agree it is not surprising that full-3D is slower than quasi-3D, but not to the extent I've been seeing. I am not sure what other info you would like me to provide about my simulations, so I will give some general info that I feel is important:
- I am currently using a spectral/hp element method solver (Nektar++), doing a p-refinement study at p=5,7,10. At p=10 the full-3D simulation runs out of memory on a cluster I use, regardless of how many nodes I run on. p=10 works fine in quasi-3D.
- For full-3D, p=5 has 3,072,528 degrees of freedom, p=7 has 7,179,008 and p=10 has 18,441,368
- My mesh was created using GMSH
- I selected my time step size based on what the CFL number was converging to. I like to keep it below 1.
- I am solving the incompressible Navier-Stokes equations using direct numerical simulation.

Let me know if there is any other info I can provide. Once again, thank you for your help.
ThinFlatPlate is offline   Reply With Quote

Old   November 21, 2023, 05:01
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by ThinFlatPlate View Post
Thank you for your response. To your questions:
1. Yes. I am prescribing periodic BCs in the third direction for now, but I will change to different BCs in the third direction once I have validated the velocity field statistics.
2. I see vortex shedding in both the 2D and 3D problems.
3. Yes and yes. The flow is fully 3D and unsteady at this Reynolds number (400).

I have some questions about your notes:
1. How much smaller should the time step be in full-3D than in quasi-3D? Also, could you be more specific about what you mean by the "stability constraint"?
2. Why would the unsteadiness in the flow not slow down the quasi-3D simulations to the same degree?

I agree it is not surprising that full-3D is slower than quasi-3D, but not to the extent I've been seeing. I am not sure what other info you would like me to provide about my simulations, so I will give some general info that I feel is important:
- I am currently using a spectral/hp element method solver (Nektar++), doing a p-refinement study at p=5,7,10. At p=10 the full-3D simulation runs out of memory on a cluster I use, regardless of how many nodes I run on. p=10 works fine in quasi-3D.
- For full-3D, p=5 has 3,072,528 degrees of freedom, p=7 has 7,179,008 and p=10 has 18,441,368
- My mesh was created using GMSH
- I selected my time step size based on what the CFL number was converging to. I like to keep it below 1.
- I am solving the incompressible Navier-Stokes equations using direct numerical simulation.

Let me know if there is any other info I can provide. Once again, thank you for your help.



Spectral elements methods are computationally expensive. But your dt depends on the time-integration method, too. At Re=400, the stability limit can be due to the diffusive terms (if explicit) rather then the CFL<=1.
The periodic conditions can produce some communication issue in your cluster, cache miss and so on.

By a physical point of view, I suppose that the shedding you have in the 3D case is no longer two-dimensional.
In conclusion, there are several reasons for a slow run.
FMDenaro is offline   Reply With Quote

Old   November 22, 2023, 05:22
Default
  #5
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by ThinFlatPlate View Post
- I am currently using a spectral/hp element method solver (Nektar++), doing a p-refinement study at p=5,7,10. At p=10 the full-3D simulation runs out of memory on a cluster I use, regardless of how many nodes I run on.
I am not sure what you are looking for here. You are doing a study and you are finding the findings.

It is true that higher the order computationally expensive it becomes. It becomes unstable and it uses more and more memory. This is your finding too.

One can not even advise you to use another software here because you are studying p refinement and you are using software that allows it.
arjun is offline   Reply With Quote

Reply

Tags
efficiency, full-3d, quasi-3d


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
Rotor 67 full compressor geometry jf Main CFD Forum 3 January 28, 2024 06:14
[mesh manipulation] Full or half geometry to use? vava10 OpenFOAM Meshing & Mesh Conversion 0 March 14, 2021 08:31
Fluent running increadibly slow MayTheFlowBeWithYou FLUENT 12 May 22, 2018 03:04
Sedimentation and the full N-S equations: too slow calculations TTY Main CFD Forum 5 October 4, 2013 17:22
Calculation to slow A.A. OpenFOAM Running, Solving & CFD 2 January 10, 2013 05:44


All times are GMT -4. The time now is 04:32.