@@ -218,6 +218,7 @@ void CFlowCompOutput::SetVolumeOutputFields(CConfig *config){
218218 AddVolumeOutput (" DENSITY" , " Density" , " SOLUTION" , " Density" );
219219 AddVolumeOutput (" MOMENTUM-X" , " Momentum_x" , " SOLUTION" , " x-component of the momentum vector" );
220220 AddVolumeOutput (" MOMENTUM-Y" , " Momentum_y" , " SOLUTION" , " y-component of the momentum vector" );
221+
221222 if (nDim == 3 )
222223 AddVolumeOutput (" MOMENTUM-Z" , " Momentum_z" , " SOLUTION" , " z-component of the momentum vector" );
223224 AddVolumeOutput (" ENERGY" , " Energy" , " SOLUTION" , " Energy" );
@@ -237,6 +238,11 @@ void CFlowCompOutput::SetVolumeOutputFields(CConfig *config){
237238 AddVolumeOutput (" TEMPERATURE" , " Temperature" , " PRIMITIVE" , " Temperature" );
238239 AddVolumeOutput (" MACH" , " Mach" , " PRIMITIVE" , " Mach number" );
239240 AddVolumeOutput (" PRESSURE_COEFF" , " Pressure_Coefficient" , " PRIMITIVE" , " Pressure coefficient" );
241+ AddVolumeOutput (" VELOCITY-X" , " Velocity_x" , " PRIMITIVE" , " x-component of the velocity vector" );
242+ AddVolumeOutput (" VELOCITY-Y" , " Velocity_y" , " PRIMITIVE" , " y-component of the velocity vector" );
243+
244+ if (nDim == 3 )
245+ AddVolumeOutput (" VELOCITY-Z" , " Velocity_z" , " PRIMITIVE" , " z-component of the velocity vector" );
240246
241247 // Datadriven fluid model
242248 if (config->GetKind_FluidModel () == DATADRIVEN_FLUID){
@@ -330,6 +336,11 @@ void CFlowCompOutput::LoadVolumeData(CConfig *config, CGeometry *geometry, CSolv
330336
331337 const su2double factor = solver[FLOW_SOL]->GetReferenceDynamicPressure ();
332338 SetVolumeOutputValue (" PRESSURE_COEFF" , iPoint, (Node_Flow->GetPressure (iPoint) - solver[FLOW_SOL]->GetPressure_Inf ())/factor);
339+ SetVolumeOutputValue (" VELOCITY-X" , iPoint, Node_Flow->GetVelocity (iPoint, 0 ));
340+ SetVolumeOutputValue (" VELOCITY-Y" , iPoint, Node_Flow->GetVelocity (iPoint, 1 ));
341+ if (nDim == 3 ){
342+ SetVolumeOutputValue (" VELOCITY-Z" , iPoint, Node_Flow->GetVelocity (iPoint, 2 ));
343+ }
333344
334345 if (config->GetKind_FluidModel () == DATADRIVEN_FLUID){
335346 SetVolumeOutputValue (" EXTRAPOLATION" , iPoint, Node_Flow->GetDataExtrapolation (iPoint));
0 commit comments