Commit 293aa34b authored by Vinay Pyati's avatar Vinay Pyati

correcting errors in add_obstacle python module

parent 606a7b90
......@@ -230,8 +230,7 @@ class add_obstacle(smtk.operation.Operation):
# run snappyHexMesh
executableArgs = [
'snappyHexMesh', '-case', n(
).workingDirectory(),
'snappyHexMesh', '-case', session.workingDirectory(),
'-overwrite']
snappyHexMeshP = subprocess.Popen(
executableArgs, stdout=subprocess.PIPE)
......@@ -317,7 +316,7 @@ class add_obstacle(smtk.operation.Operation):
meshResource.associateToModel(model.entity())
# Describe a volume that comprises the entire wind tunnel
volume = resource.ddVolume()
volume = resource.addVolume()
model.addCell(volume)
model.findOrAddRawRelation(volume)
volume.findOrAddRawRelation(model)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment