Can I compute the following in WB Mechanical with expressions?:
I need to calculate the 'u' variable along a line specified as a path geometry (placed along the centroid axis of a rectangular body). Computing u requires integrating TG over time. I would like a plot of the variable across this line. Then I would like to plot that line at multiple times on the same graph. In the example below (not shown in this KB Solution) u vs. distance is plotted every 30min during my transient cool down simulation. I do something similar in COMSOL multiphysics but I'd like to see if I can also implement this into Ansys workbench.
This can be done with a Solution Commands Object as shown below. ! ****** Begin Command Snippet ****** ! Commands inserted into this file will be executed immediately after the Ansys /POST1 command. ! Active UNIT system in Workbench when this object was created: Metric (m, kg, N, s, V, A) /post26 cmsel,s,n1 esln esel,r,enam,,70,90,20 ndmin=ndnext(0) elmin=elnext(0) ansol,2,ndmin,TG,Z,TGZ1 nsol,3,ndmin,TEMP,,T1 a = 3 b = 2 c = 50 PROD,4,2, , , aTGZ, , , a, , PROD,5,3, , , bT, , , b, , FILLDATA,6,,,,c,0 ADD,7,5,6,,bTc EXP,8,7 !!! exp(bTc) PROD,9,4,8 !!! (du/dt) INT1,10,9,1 !!! Integrate (du/dt) w.r.t time (variable 1) /show,png /gfile,650 /axlab,x,du/dt plvar,9 /axlab,x,u plvar,10 

