CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Time Step and CEL expressions for Mesh Deformation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2011, 05:10
Default Time Step and CEL expressions for Mesh Deformation
  #1
New Member
 
Richard Barrett
Join Date: Jun 2011
Posts: 14
Rep Power: 15
rbarrett is on a distinguished road
Hi all,

I am relatively new to CFX and I was just wondering if anyone could help me with a few problems that I have been having with a mesh deformation problem. I am modelling the compression of a piston within a cylinder. The actual geometry consists of two pistons within one cylinder, so there is a line of symmetry at mid chamber location. My model is also axisymmetric.

The problem that I am having is that the simulation deformation is over predicting the applied displacement and I was wondering if there is an issue with (i) my CEL expressions or (ii) my time step.

(i) The CEL expressions that I am using are ('WeightFunction' is a linear weighting function and 'Li' is the total length of the compression chamber):

Disp = sDisp*WeightFunction
Li = 0.178 [m]
WeightFunction = 1-((z-sDisp)/(Li-sDisp))
sDisp = velCV*t
velCV = 8 [m/s]

(ii) The time step that I am using is 5.2e-4 s for a total compression time of 16.6 ms.

Any help with this issue is greatly appreciated.
rbarrett is offline   Reply With Quote

Old   July 2, 2011, 07:50
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You seem to be describing a strange motion. Doesn't your function describe a displacement proportional to z height? That means the piston will pivot, not slide.

The best way to debug mesh motion stuff is to do a test run with all the solvers turned off using the expert parameters, and saving a result file (including the mesh!) every time step. Then you can quickly run the mesh motion and check you are getting the motion you intend.
ghorrocks is offline   Reply With Quote

Old   July 4, 2011, 10:16
Default
  #3
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 21
stumpy is on a distinguished road
There might be a problem with your weighting function here. Instead of using sDisp in WeightFunction use a callback to get the piston position, e.g areaAve(zGlobal)@movingend.
The callback is lagged to the previous timestep, but sDisp is not, which may be causing the unexpected behaviour.
stumpy is offline   Reply With Quote

Old   July 6, 2011, 11:13
Default
  #4
New Member
 
Richard Barrett
Join Date: Jun 2011
Posts: 14
Rep Power: 15
rbarrett is on a distinguished road
The issue was related to sDisp in the weighting function. I have now replaced this with a function based on t-tStep and the model is deforming as desired. Thanks a million for your help.
rbarrett is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 08:59
Cel expressions for trasient problem Jervds CFX 0 March 4, 2008 11:03
error using combination of step function xujjun CFX 1 January 15, 2008 17:46
CEL using different time step for different domain new@cfx CFX 3 September 30, 2005 09:03
How does STEP function work in CEL setup in CFX5.5 joseph CFX 1 April 6, 2002 00:06


All times are GMT -4. The time now is 21:39.