MCPcopy Create free account
hub / github.com/Kitware/VTK / MapFunction

Method MapFunction

IO/Parallel/vtkMultiBlockPLOT3DReader.cxx:3290–3414  ·  view source on GitHub ↗

Various PLOT3D functions.....................

Source from the content-addressed store, hash-verified

3288
3289// Various PLOT3D functions.....................
3290void vtkMultiBlockPLOT3DReader::MapFunction(int fNumber, vtkStructuredGrid* output)
3291{
3292 switch (fNumber)
3293 {
3294 case 100: // Density
3295 break;
3296
3297 case 110: // Pressure
3298 if (vtkDataArray* dataArray = this->ComputePressure(output))
3299 {
3300 dataArray->GetInformation()->Remove(INTERMEDIATE_RESULT());
3301 }
3302 break;
3303
3304 case 111: // Pressure Coefficient
3305 if (vtkDataArray* dataArray = this->ComputePressureCoefficient(output))
3306 {
3307 dataArray->GetInformation()->Remove(INTERMEDIATE_RESULT());
3308 }
3309 break;
3310
3311 case 112: // Mach Number
3312 if (vtkDataArray* dataArray = this->ComputeMachNumber(output))
3313 {
3314 dataArray->GetInformation()->Remove(INTERMEDIATE_RESULT());
3315 }
3316 break;
3317
3318 case 113: // Sound Speed
3319 if (vtkDataArray* dataArray = this->ComputeSoundSpeed(output))
3320 {
3321 dataArray->GetInformation()->Remove(INTERMEDIATE_RESULT());
3322 }
3323 break;
3324
3325 case 120: // Temperature
3326 if (vtkDataArray* dataArray = this->ComputeTemperature(output))
3327 {
3328 dataArray->GetInformation()->Remove(INTERMEDIATE_RESULT());
3329 }
3330 break;
3331
3332 case 130: // Enthalpy
3333 if (vtkDataArray* dataArray = this->ComputeEnthalpy(output))
3334 {
3335 dataArray->GetInformation()->Remove(INTERMEDIATE_RESULT());
3336 }
3337 break;
3338
3339 case 140: // Internal Energy
3340 break;
3341
3342 case 144: // Kinetic Energy
3343 if (vtkDataArray* dataArray = this->ComputeKineticEnergy(output))
3344 {
3345 dataArray->GetInformation()->Remove(INTERMEDIATE_RESULT());
3346 }
3347 break;

Callers 1

ReadArraysMethod · 0.95

Calls 15

ComputePressureMethod · 0.95
ComputeMachNumberMethod · 0.95
ComputeSoundSpeedMethod · 0.95
ComputeTemperatureMethod · 0.95
ComputeEnthalpyMethod · 0.95
ComputeKineticEnergyMethod · 0.95
ComputeEntropyMethod · 0.95
ComputeSwirlMethod · 0.95
ComputeVelocityMethod · 0.95
ComputeVorticityMethod · 0.95

Tested by

no test coverage detected