The following is an example of an expression for remeshing the chamber of a cylinder of initial length of 0.15 meters driven by a piston connected to a drive wheel.
<expressions>
# general parameters
#=============
pi = 4*atan(1)
# === operation parameters ===
rpm = 180
freq = rpm/60
omega = rpm/60*2*pi
theta = omega*time
stroke = 0.1
#Minimum Length of Cylinder Chamber
# (Must correspond to geometry in CAD)
Cyl_Length = 0.15
#=== Drive Wheel Parameters ====
#Radius (R) of drive wheel
R = stroke/2
#Length (Rod) of Connecting Rod
Rod = 0.3
#=== Calculation ===
b = R*cos(theta)
h = R*sin(theta)
S = sqrt(Rod*Rod-h*h)
Delta = Rod+R-(S+b)
z = z+(Delta-y*h/S)*z/Cyl_Length
</expressions>
<#End the Reference>
|
|
Copyright © 2023 Simerics Inc., |