vhr
Mechanical
- Aug 13, 2020
- 4
Hello everyone,
I am currently trying to do a simulation using python scripts. I am modeling heat flow through pipe thickness but I am having a hard time defining a surface to which I want to apply constant temperature BC. I am attempting to apply Temp BC to the pipe surface but am not able to capture the surface I think. I am using the following script. I am getting an error message 'Set must contain some entities' at the last line in the script below. I am new to this so any help would be highly appreciated. Thanks in advance!
internal radius of the pipe = 0.1
length of the pipe = 1.0
internalPipePoint = (0.1, 0.0, 0.5)
internalPipe = myInstance.faces.findAt((internalPipePoint,))
intDiaRegion = regionToolset.Region(side1Faces=internalPipe)
myModel.TemperatureBC(name='Temp Int',createStepName='temp', region=intDiaRegion, magnitude=100.0)
Also, when trying to print 'internalPipe' and 'intDiaRegion' in the abaqus I am getting this output.
internalPipe: (mdb.models['Pipe'].rootAssembly.instances['pipeInstance'].faces.findAt(((0.1, 0.0, 0.5),)))
intDiaRegion: (Region(side1Faces=mdb.models['Pipe'].rootAssembly.instances['pipeInstance'].faces.findAt(((0.099154, 0.012978, 0.666667),),)))
I am currently trying to do a simulation using python scripts. I am modeling heat flow through pipe thickness but I am having a hard time defining a surface to which I want to apply constant temperature BC. I am attempting to apply Temp BC to the pipe surface but am not able to capture the surface I think. I am using the following script. I am getting an error message 'Set must contain some entities' at the last line in the script below. I am new to this so any help would be highly appreciated. Thanks in advance!
internal radius of the pipe = 0.1
length of the pipe = 1.0
internalPipePoint = (0.1, 0.0, 0.5)
internalPipe = myInstance.faces.findAt((internalPipePoint,))
intDiaRegion = regionToolset.Region(side1Faces=internalPipe)
myModel.TemperatureBC(name='Temp Int',createStepName='temp', region=intDiaRegion, magnitude=100.0)
Also, when trying to print 'internalPipe' and 'intDiaRegion' in the abaqus I am getting this output.
internalPipe: (mdb.models['Pipe'].rootAssembly.instances['pipeInstance'].faces.findAt(((0.1, 0.0, 0.5),)))
intDiaRegion: (Region(side1Faces=mdb.models['Pipe'].rootAssembly.instances['pipeInstance'].faces.findAt(((0.099154, 0.012978, 0.666667),),)))