FreeCAD 0.17 coupled structural thermal FEA analysis demo (Redo sound sync fix)

Описание к видео FreeCAD 0.17 coupled structural thermal FEA analysis demo (Redo sound sync fix)

FreeCAD 0.17 coupled structural thermal FEA analysis demo (Redo fix sound sync problem)

Python script for plotting transient results
@author: Michael Hindley
"""
import FreeCAD
import numpy as np
import matplotlib.pyplot as plt

#Get list of anylysis memebers
members=FreeCAD.ActiveDocument.Analysis.Member

time=[]
stress=[]

for member in members:
if member.isDerivedFrom("Fem::FemResultObject"):
memresult=member
#Check first object and toggle visibility to oppesite
P1=np.array(memresult.PrincipalMax)
P2=np.array(memresult.PrincipalMed)
P3=np.array(memresult.PrincipalMin)
Von=np.array(memresult.StressValues)
T=np.array(memresult.Temperature)
dispvectors=np.array(memresult.DisplacementVectors)
x=np.array(dispvectors[:, 0])
y=np.array(dispvectors[:, 1])
z=np.array(dispvectors[:, 2])
#Print messages for testing
#FreeCAD.Console.PrintMessage(str(member.Name)+" \n")
#FreeCAD.Console.PrintMessage(str(member.Time)+" \n")
#Save the value you need
time.append(member.Time)
stress.append(max(T))


plot with various axes scales
plt.figure(1)
plt.plot(time,stress)
plt.title('Maximum Temperature vs time')
plt.xlabel('Time (S)')
plt.ylabel('Temperature')
plt.show()


More detailed training can be downloaded from.
http://opensim.co.za/index.php?option...

Комментарии

Информация по комментариям в разработке