|
[Sponsors] |
Relationship between flow and turbulence solvers |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 22, 2021, 08:49 |
Relationship between flow and turbulence solvers
|
#1 |
Member
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 8 |
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 |
|
May 22, 2021, 09:12 |
|
#2 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21 |
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); Is this pointing you in the right direction? |
|
May 22, 2021, 11:25 |
|
#3 |
Member
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 8 |
Yes, I understand, Thank you!
|
|
May 23, 2021, 08:54 |
|
#4 |
Member
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 8 |
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! |
|
May 23, 2021, 11:30 |
|
#5 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14 |
Time instance for harmonic balance.
|
|
May 23, 2021, 21:58 |
|
#6 |
Member
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 8 |
Got it. Thank you!
|
|
|
|
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 12:05 |
About Turbulence Intensity (Pipe flow assimilated) | gRomK13 | Main CFD Forum | 1 | July 10, 2009 04:11 |
Discussion: Reason of Turbulence!! | Wen Long | Main CFD Forum | 3 | May 15, 2009 10:52 |
Code release: Flow Transition and Turbulence | Chaoqun Liu | Main CFD Forum | 0 | September 26, 2008 18:15 |
Natural convection - Inlet boundary condition | max91 | CFX | 1 | July 29, 2008 21:28 |