Update Instruction

The Update Instruction file (test.py) contains the Python code that provides instructions for passing the mesh data to the downstream Fluent system.

#obtain input data
container = ExternalConnectionSystemContainer
upstreamData = container.GetInputDataByType(InputType="MeshingMesh")
meshFileRef = None
upstreamDataCount = upstreamData.Count
if upstreamDataCount > 0:
      meshFileRef = upstreamData[0]
      #set our output so that we are just a pass through.
      outputRefs = container.GetOutputData()
      meshOutputSet = outputRefs["SimulationGeneratedMesh"]
      meshOutput = meshOutputSet[0]
      #meshOutput.MeshFile = meshFileRef
      meshOutput.TransferFile = meshFileRef
#if no new data...nothing to process from upstream sources.

Release 18.2 - © ANSYS, Inc. All rights reserved.