|
[Sponsors] |
August 15, 2018, 10:27 |
output force instead of Cd in console
|
#1 |
Member
cean wang
Join Date: Feb 2013
Posts: 43
Rep Power: 13 |
hi,
i noticed the console output is different when using testcase cfg for inv_euler and incomp_euler. One output Velx, the other moniting RouE. Can't see any setting about this in cfg fie. is it hard coded inside the slover? i Just want to moniting force on screen,not Cd. thanks cean |
|
August 16, 2018, 06:48 |
|
#2 |
Member
cean wang
Join Date: Feb 2013
Posts: 43
Rep Power: 13 |
OK, I found out in output_structure.cpp
In function void COutput::SetConvHistory_Body { } Looking for /*--- Write screen output ---*/ section to change as needed. |
|
August 25, 2018, 18:36 |
|
#3 | |
Senior Member
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 13 |
Hello
Thanks for your interest in SU2 Just a quick note, since it sounded like there was some confusion over the meaning of the console output - the reason that pressure and velocity residuals are output for incompressible simulations while RhoE and Rho residuals are output for compressible simulations has to do with the equations being solved. For a compressible simulation, the equations are in terms of mass, momentum, and energy (rho, rho*U, and rho*E). For an incompressible simulation, because by definition the change in density (rho) is zero, the equations are instead implemented in terms of pressure and velocity. The residual (Res[...]) values have to do with how far the solver has progressed towards a good solution, and do not indicate the physical values of these quantities. It is totally fine to output the force instead of the Cl value, and I can see that you have already found where this can be changed. If you would like to implement an option to control this through the configuration file that would be great, and if you want to submit it to the repository you will want to a) start from the develop branch and b) make sure that it will default to the current behavior if the option isn't specified. More information on developing is available on github. Quote:
|
||
August 26, 2018, 00:03 |
|
#4 |
Member
cean wang
Join Date: Feb 2013
Posts: 43
Rep Power: 13 |
Thanks. I'll stick to incompressiable simulation.
At the moment, just trying to save the velocity value into flow.vtk. Since the screen output is hard coded inside the program, add an option in the cfg file will be a new thing. I have no plan to do it now. I do have an interest to add an option of gmsh's POS file output. I could follow the tecplot output example. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] outputTime in Swak function | immortality | OpenFOAM Community Contributions | 20 | October 6, 2022 12:08 |
Hydrodynamic force? | arun7328 | STAR-CCM+ | 24 | July 25, 2020 04:04 |
What variable should I output to get wall force? | Pauli | CFX | 6 | May 15, 2018 07:58 |
Problems launching adjoint | max_ | SU2 | 2 | March 12, 2016 11:32 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 09:34 |