Skip to content

Commit 8f3efae

Browse files
author
rois1995
committed
- Added come outputs
1 parent 9b997d7 commit 8f3efae

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

SU2_CFD/src/output/CFlowOutput.cpp

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,23 @@ void CFlowOutput::SetVolumeOutputFieldsScalarMisc(const CConfig* config) {
15091509
AddVolumeOutput("VORTICITY", "Vorticity", "VORTEX_IDENTIFICATION", "Value of the vorticity");
15101510
}
15111511
AddVolumeOutput("Q_CRITERION", "Q_Criterion", "VORTEX_IDENTIFICATION", "Value of the Q-Criterion");
1512+
if (config->GetKind_HybridRANSLES() == NO_HYBRIDRANSLES) {
1513+
AddVolumeOutput("WALL_DISTANCE", "Wall_Distance", "DEBUG", "Wall distance value");
1514+
}
1515+
AddVolumeOutput("GRAD_VEL_XX", "Grad_Vel_xx", "DEBUG", "Strain magnitude value");
1516+
AddVolumeOutput("GRAD_VEL_XY", "Grad_Vel_xy", "DEBUG", "Strain magnitude value");
1517+
AddVolumeOutput("GRAD_VEL_YX", "Grad_Vel_yx", "DEBUG", "Strain magnitude value");
1518+
AddVolumeOutput("GRAD_VEL_YY", "Grad_Vel_yy", "DEBUG", "Strain magnitude value");
1519+
if (nDim == 3) {
1520+
AddVolumeOutput("GRAD_VEL_XZ", "Grad_Vel_xz", "DEBUG", "Strain magnitude value");
1521+
AddVolumeOutput("GRAD_VEL_YZ", "Grad_Vel_yz", "DEBUG", "Strain magnitude value");
1522+
AddVolumeOutput("GRAD_VEL_ZX", "Grad_Vel_zx", "DEBUG", "Strain magnitude value");
1523+
AddVolumeOutput("GRAD_VEL_ZY", "Grad_Vel_zy", "DEBUG", "Strain magnitude value");
1524+
AddVolumeOutput("GRAD_VEL_ZZ", "Grad_Vel_zz", "DEBUG", "Strain magnitude value");
1525+
}
1526+
AddVolumeOutput("CDkw", "CDkw", "DEBUG", "Cross-Diffusion term");
1527+
AddVolumeOutput("F1", "F1", "DEBUG", "F1 blending function");
1528+
AddVolumeOutput("F2", "F2", "DEBUG", "F2 blending function");
15121529

15131530
if (config->GetKind_Turb_Model() != TURB_MODEL::NONE)
15141531
AddVolumeOutput("SRS_GRID_SIZE", "Srs_grid_size", "SAS", "desired grid size for Scale Resolving Simulations");
@@ -1552,14 +1569,31 @@ void CFlowOutput::LoadVolumeDataScalar(const CConfig* config, const CSolver* con
15521569
SetVolumeOutputValue("CFL", iPoint, Node_Flow->GetLocalCFL(iPoint));
15531570

15541571
if (config->GetViscous()) {
1572+
const auto VelGrad = Node_Flow->GetVelocityGradient(iPoint);
15551573
if (nDim == 3){
15561574
SetVolumeOutputValue("VORTICITY_X", iPoint, Node_Flow->GetVorticity(iPoint)[0]);
15571575
SetVolumeOutputValue("VORTICITY_Y", iPoint, Node_Flow->GetVorticity(iPoint)[1]);
15581576
SetVolumeOutputValue("VORTICITY_Z", iPoint, Node_Flow->GetVorticity(iPoint)[2]);
15591577
} else {
15601578
SetVolumeOutputValue("VORTICITY", iPoint, Node_Flow->GetVorticity(iPoint)[2]);
15611579
}
1562-
SetVolumeOutputValue("Q_CRITERION", iPoint, GetQCriterion(Node_Flow->GetVelocityGradient(iPoint)));
1580+
SetVolumeOutputValue("Q_CRITERION", iPoint, GetQCriterion(VelGrad));
1581+
SetVolumeOutputValue("WALL_DISTANCE", iPoint, Node_Geo->GetWall_Distance(iPoint));
1582+
SetVolumeOutputValue("GRAD_VEL_XX", iPoint, VelGrad(0,0));
1583+
SetVolumeOutputValue("GRAD_VEL_XY", iPoint, VelGrad(0,1));
1584+
SetVolumeOutputValue("GRAD_VEL_YX", iPoint, VelGrad(1,0));
1585+
SetVolumeOutputValue("GRAD_VEL_YY", iPoint, VelGrad(1,1));
1586+
if (nDim == 3) {
1587+
SetVolumeOutputValue("GRAD_VEL_XZ", iPoint, VelGrad(0,2));
1588+
SetVolumeOutputValue("GRAD_VEL_YZ", iPoint, VelGrad(1,2));
1589+
SetVolumeOutputValue("GRAD_VEL_ZX", iPoint, VelGrad(2,0));
1590+
SetVolumeOutputValue("GRAD_VEL_ZY", iPoint, VelGrad(2,1));
1591+
SetVolumeOutputValue("GRAD_VEL_ZZ", iPoint, VelGrad(2,2));
1592+
}
1593+
1594+
SetVolumeOutputValue("CDkw", iPoint, Node_Turb->GetCrossDiff(iPoint));
1595+
SetVolumeOutputValue("F1", iPoint, Node_Turb->GetF1blending(iPoint));
1596+
SetVolumeOutputValue("F2", iPoint, Node_Turb->GetF2blending(iPoint));
15631597

15641598
if (config->GetKind_Turb_Model() != TURB_MODEL::NONE)
15651599
SetVolumeOutputValue("SRS_GRID_SIZE", iPoint, Node_Turb->GetSRSGridSize(iPoint));

0 commit comments

Comments
 (0)