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

Meaning of [iVar],[iDim], solver_container, val_marker

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2016, 10:57
Default Meaning of [iVar],[iDim], solver_container, val_marker
  #1
New Member
 
Boudigues Kevin
Join Date: Sep 2016
Posts: 5
Rep Power: 9
kevin_1 is on a distinguished road
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
kevin_1 is offline   Reply With Quote

Old   September 8, 2016, 13:51
Default
  #2
hlk
Senior Member
 
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 13
hlk is on a distinguished road
Quote:
Originally Posted by kevin_1 View Post
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
Thanks for your question, I will try to answer it and also provide information on where to look for more detail on the code.
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.
hlk is offline   Reply With Quote

Old   September 9, 2016, 05:00
Default
  #3
New Member
 
Boudigues Kevin
Join Date: Sep 2016
Posts: 5
Rep Power: 9
kevin_1 is on a distinguished road
Thank your answer.
I am going to look that now.
kevin_1 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
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


All times are GMT -4. The time now is 06:31.