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

Relationship between flow and turbulence solvers

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2021, 07:49
Post Relationship between flow and turbulence solvers
  #1
Member
 
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 8
Zhen ZHANG is on a distinguished road
Hi all,
When simulating a turbulent flow, the flow solver and the turbulence solver should be built. My questions are how these two solvers are arranged in the solver pointer, and how they transfer data.
Can anyone give me some clues? Or which part of the codes can be referred to?

Thanks in advance!
zhen
Zhen ZHANG is offline   Reply With Quote

Old   May 22, 2021, 08:12
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 585
Rep Power: 17
bigfootedrockmidget is on a distinguished road
Maybe you can start in the file cSolverFactory.cpp. There you see that a solver class is created for each of the solvers: a flow solver (e.g. incompressible Euler), a turbulence solver (e.g. SA model), etc. they are collected in solver_container.

The solvers are independent, but information is transferred. For the flow solver, we need the turbulent viscosity. The solver_container is basically an array containing your solvers. So inside the flow solver, you can access information from the turbulence solver through the solver_container, for instance by saying:
Code:
solver_container[TURB_SOL]->GetNodes()->GetmuT(iPoint);
And in the turbulence model, we access the solution of the flow solver in a similar way.


Is this pointing you in the right direction?
bigfootedrockmidget is offline   Reply With Quote

Old   May 22, 2021, 10:25
Smile
  #3
Member
 
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 8
Zhen ZHANG is on a distinguished road
Yes, I understand, Thank you!
Zhen ZHANG is offline   Reply With Quote

Old   May 23, 2021, 07:54
Default
  #4
Member
 
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 8
Zhen ZHANG is on a distinguished road
Hi,
I have another related question, what are the indexes of the solver container such as solver[iZone][iInst][MESH_0][FLOW_SOL]?
Zone is for multiphysics, Mesh is for multigrid, and SOL is for different solver types. Is it right? And what is the instance?
Thanks!
Zhen ZHANG is offline   Reply With Quote

Old   May 23, 2021, 10:30
Default
  #5
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 13
pcg is on a distinguished road
Time instance for harmonic balance.
pcg is offline   Reply With Quote

Old   May 23, 2021, 20:58
Default
  #6
Member
 
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 8
Zhen ZHANG is on a distinguished road
Got it. Thank you!
Zhen ZHANG is offline   Reply With Quote

Reply


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
Low Re Turbulence model VS Low Re flow and Turbulence Modelling background pchoopanya Main CFD Forum 4 May 10, 2018 11:05
About Turbulence Intensity (Pipe flow assimilated) gRomK13 Main CFD Forum 1 July 10, 2009 03:11
Discussion: Reason of Turbulence!! Wen Long Main CFD Forum 3 May 15, 2009 09:52
Code release: Flow Transition and Turbulence Chaoqun Liu Main CFD Forum 0 September 26, 2008 17:15
Natural convection - Inlet boundary condition max91 CFX 1 July 29, 2008 20:28


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