CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Pressure results (https://www.cfd-online.com/Forums/su2/115018-pressure-results.html)

curky March 21, 2013 16:56

Pressure results
 
Is it possible to get pressure results instead of pressure coefficient in result file surface_flow? I can't find any info about it.

fpalacios March 21, 2013 20:48

Yep, this is a minor modification in the code.

Anyway, the volumetric solution provides the value of the pressure (note that the latest version of SU2 has a new I/O)

If you want to change the surface output, just localize in the output_structure.cpp the following code
for (iMarker = 0; iMarker < config->GetnMarker_All(); iMarker++)
if (config->GetMarker_All_Plotting(iMarker) == YES)
for(iVertex = 0; iVertex < geometry->nVertex[iMarker]; iVertex++) {
iPoint = geometry->vertex[iMarker][iVertex]->GetNode();
aux_press[iPoint] = FlowSolution->GetCPressure(iMarker,iVertex);
}

and change
FlowSolution->GetCPressure(iMarker,iVertex); by FlowSolution->node[iPoint]->GetPressure(false);

Best,
Francisco

curky March 22, 2013 18:05

Thanks a lot!!!


All times are GMT -4. The time now is 19:17.