|
[Sponsors] |
Meaning of [iVar],[iDim], solver_container, val_marker |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 8, 2016, 10:57 |
Meaning of [iVar],[iDim], solver_container, val_marker
|
#1 |
New Member
Boudigues Kevin
Join Date: Sep 2016
Posts: 5
Rep Power: 9 |
Hi All,
i started to look the code and there is some part of it that I don't understand. My question is what is the meaning of these line of code in bold type ? Solution[iVar] = nu_til; VelInf[iDim] P_Normal = solver_container[FLOW_SOL]->node[iPoint_Neighbor]->GetPressure() iPoint = geometry->vertex[val_marker][iVertex]->GetNode() I will be so thankful if you can help me Best Regards |
|
September 8, 2016, 13:51 |
|
#2 | |
Senior Member
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 13 |
Quote:
iVar, iDim: these are indices, pointing to the location in a list - in these cases, the ith variable in a solution vector and the ith dimension of a velocity. Solver_container holds one or more instances of a solver class - the classes which have the methods used to define a particular problem, for example Euler or Navier-Stokes. The class structure is illustrated in the github documentation. FLOW_SOL is an index which points to the location in the container that stores the flow solution class. Solution information is stored at 'nodes'. The geometry holds the mesh information, including boundary vertices. Markers identify boundaries of the mesh, for example the last line could be referencing the 10th vertex on the airfoil surface, and returning the node index that is associated with that point. In general, there are three main places to look for code documentation: the wiki on github, particularly the developer documentation section (https://github.com/su2code/SU2/wiki/Code-Structure), the comments of the code, and the doxygen documentation. For comments in the code, I recommend using an IDE such as XCode or Eclipse, which will allow you to navigate easily to the declaration of the variables, where there is usually a comment in the code describing what that variable does. You can also find this manually by searching through the .hpp files. For the doxygen, we do not currently maintain a compiled version, but you can find the files necessary to compile to doxygen documentation on whichever version of the code you have in the su2code/Documentation repository. More information on how to use doxygen files and what kind of information it provides is available in many places online, and with the files provided and a little google-ing on how to use doxygen it is pretty straightforward. |
||
September 9, 2016, 05:00 |
|
#3 |
New Member
Boudigues Kevin
Join Date: Sep 2016
Posts: 5
Rep Power: 9 |
Thank your answer.
I am going to look that now. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Who can tell me what is the meaning of the macro in fluent UDF:C_PREMIXC_RATE(c,t) | ChenZhan | Fluent UDF and Scheme Programming | 1 | May 12, 2017 03:40 |
What is the meaning of pd in foam-extended 3.1 | lxwd | OpenFOAM Running, Solving & CFD | 2 | February 3, 2017 11:54 |
Static Pressure meaning | Hardee | FLUENT | 1 | February 5, 2016 21:34 |
What's meaning of UDF FUNCTION | zhaoxinyu | Fluent UDF and Scheme Programming | 0 | March 31, 2010 08:04 |
want to know meaning | Sangamesh | Siemens | 0 | May 15, 2007 05:15 |