@@ -193,6 +193,23 @@ void CAdjElasticityOutput::LoadVolumeData(CConfig *config, CGeometry *geometry,
193193 SetVolumeOutputValue (" SENSITIVITY-Y" , iPoint, Node_Struc->GetSensitivity (iPoint, 1 ));
194194 if (nDim == 3 )
195195 SetVolumeOutputValue (" SENSITIVITY-Z" , iPoint, Node_Struc->GetSensitivity (iPoint, 2 ));
196+
197+ if (!config->GetTime_Domain ()) return ;
198+
199+ SetVolumeOutputValue (" SENS_DISP-X" , iPoint, Node_Struc->GetSolution_time_n (iPoint, 0 ));
200+ SetVolumeOutputValue (" SENS_DISP-Y" , iPoint, Node_Struc->GetSolution_time_n (iPoint, 1 ));
201+ if (nDim == 3 )
202+ SetVolumeOutputValue (" SENS_DISP-Z" , iPoint, Node_Struc->GetSolution_time_n (iPoint, 2 ));
203+
204+ SetVolumeOutputValue (" SENS_VEL-X" , iPoint, Node_Struc->GetSolution_time_n (iPoint, nDim));
205+ SetVolumeOutputValue (" SENS_VEL-Y" , iPoint, Node_Struc->GetSolution_time_n (iPoint, nDim + 1 ));
206+ if (nDim == 3 )
207+ SetVolumeOutputValue (" SENS_VEL-Z" , iPoint, Node_Struc->GetSolution_time_n (iPoint, 5 ));
208+
209+ SetVolumeOutputValue (" SENS_ACCEL-X" , iPoint, Node_Struc->GetSolution_time_n (iPoint, 2 * nDim));
210+ SetVolumeOutputValue (" SENS_ACCEL-Y" , iPoint, Node_Struc->GetSolution_time_n (iPoint, 2 * nDim + 1 ));
211+ if (nDim == 3 )
212+ SetVolumeOutputValue (" SENS_ACCEL-Z" , iPoint, Node_Struc->GetSolution_time_n (iPoint, 8 ));
196213}
197214
198215void CAdjElasticityOutput::SetVolumeOutputFields (CConfig *config){
@@ -223,4 +240,23 @@ void CAdjElasticityOutput::SetVolumeOutputFields(CConfig *config){
223240 AddVolumeOutput (" SENSITIVITY-Z" , " Sensitivity_z" , " SENSITIVITY" , " geometric sensitivity in the z direction" );
224241 // / END_GROUP
225242
243+ if (!config->GetTime_Domain ()) return ;
244+
245+ /* --- Sensitivities with respect to initial conditions. ---*/
246+
247+ AddVolumeOutput (" SENS_DISP-X" , " SensInitialDisp_x" , " SENSITIVITY_T0" , " sensitivity to the initial x displacement" );
248+ AddVolumeOutput (" SENS_DISP-Y" , " SensInitialDisp_y" , " SENSITIVITY_T0" , " sensitivity to the initial y displacement" );
249+ if (nDim == 3 )
250+ AddVolumeOutput (" SENS_DISP-Z" , " SensInitialDisp_z" , " SENSITIVITY_T0" , " sensitivity to the initial z displacement" );
251+
252+ AddVolumeOutput (" SENS_VEL-X" , " SensInitialVel_x" , " SENSITIVITY_T0" , " sensitivity to the initial x velocity" );
253+ AddVolumeOutput (" SENS_VEL-Y" , " SensInitialVel_y" , " SENSITIVITY_T0" , " sensitivity to the initial y velocity" );
254+ if (nDim == 3 )
255+ AddVolumeOutput (" SENS_VEL-Z" , " SensInitialVel_z" , " SENSITIVITY_T0" , " sensitivity to the initial z velocity" );
256+
257+ AddVolumeOutput (" SENS_ACCEL-X" , " SensInitialAccel_x" , " SENSITIVITY_T0" , " sensitivity to the initial x acceleration" );
258+ AddVolumeOutput (" SENS_ACCEL-Y" , " SensInitialAccel_y" , " SENSITIVITY_T0" , " sensitivity to the initial y acceleration" );
259+ if (nDim == 3 )
260+ AddVolumeOutput (" SENS_ACCEL-Z" , " SensInitialAccel_z" , " SENSITIVITY_T0" , " sensitivity to the initial z acceleration" );
261+
226262}
0 commit comments