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

Prescribed mesh motion does not correspond to actual motion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2011, 06:55
Default Prescribed mesh motion does not correspond to actual motion
  #1
New Member
 
Richard Barrett
Join Date: Jun 2011
Posts: 14
Rep Power: 15
rbarrett is on a distinguished road
Hi, I am attempting to simulate the compression of a gas within a piston-cylinder apparatus using Ansys CFX. I am using CEL expressions to specify the mesh motion, coupled together with the 'Specified Displacement' option. I am applying the mesh motion to a subdomain of the main fluid domain and I am finding that the results of the simulation do not match the prescribed motion that I have applied through the CEL expressions, i.e. the CFX simulation lags behind the actual.

I was just wondering if it is correct to apply this type of mesh motion in this manner and if so, why do my results lag behind the prescribed motion.

Thanks in advance
Regards
Richard
rbarrett is offline   Reply With Quote

Old   June 21, 2011, 09:34
Default
  #2
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 21
stumpy is on a distinguished road
This means you've set something up wrong. Could you post the expressions used and the relevant CCL for the subdomain and boundary conditions?
stumpy is offline   Reply With Quote

Old   June 21, 2011, 10:26
Default
  #3
New Member
 
Richard Barrett
Join Date: Jun 2011
Posts: 14
Rep Power: 15
rbarrett is on a distinguished road
Thanks a million for your reply and apologies for the length of my reply.

I am attempting to model the compression of two opposed pistons in one cylinder, hence there is a line of symmetry down the centre of the combustion chamber and the model is axisymmetric about the central axis. Initially the cylinder is 178 mm and the stroke length is 167.81 mm. Included below are the CEL expressions used in this simulation. Note that anything to do with 'Function' are step functions used to define different phases of the compression, i.e. acceleration, CV and deceleration stages and I have omitted these CEL expressions.

Also included is an image of the desired displacement function that I wish to apply as the mesh motion. This is applied to a subdomain which comprises of the full fluid domain and the function drops off linearly to zero at the mid chamber location (as there is zero mesh motion at this location). The BC's used in this simulation are all either wall or symmetry BC's, all with 'unspecified' mesh motion as mesh motion is dependent on the motion of the subdomain.

Disp_Plot_CFX.PNG

Disp = OverallFunction*sDisp
TDC = 167.81e-03 [m]
TotalTime = 116.6e-03 [s]
aAccel = 2079.05 [m/s^2]
aDecel = -23493.3 [m/s^2]
sDisp = sDispAccel+sDispCV+sDispDecel+sDispZero
sDispAccel = (0.5*aAccel*t*t)*Function1
sDispCV = ((velCV*t)-(0.5*aAccel*tAccel*tAccel))*Function2
sDispDecel =
(((t-timeDecel)*(velCV))+(0.5*aDecel*(t-timeDecel)*(t-timeDecel))+((velCV*timeDecel)-(0.5*aAccel*tAccel*tAccel)))*Function3
sDispZero = TDC*Function4
tAccel = 6.07055e-03 [s]
tCV = 9.992233e-03 [s]
tTotal = 16.6e-03 [s]
timeDecel = tAccel+tCV
velCV = 12.621 [m/s]
rbarrett is offline   Reply With Quote

Old   June 21, 2011, 10:42
Default
  #4
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 21
stumpy is on a distinguished road
So 'Disp' is the function applied to the subdomain, with 'OverallFunction' providing the linear weighting? Since this appears to only depend on t (and x/y/z to get the linear weighting I assume), then the results should be fairly easy to debug. In your results file you can get the "Total Mesh Displacement" at one end of the cylinder. Given t and x/y/z at that location you can evaluate your displacement expression. Are you saying these two don't match?
stumpy is offline   Reply With Quote

Old   June 21, 2011, 11:07
Default
  #5
New Member
 
Richard Barrett
Join Date: Jun 2011
Posts: 14
Rep Power: 15
rbarrett is on a distinguished road
Thanks for your reply and yes, 'Disp' is the desired displacement function and applied as the mesh motion to the subdomain. As is shown in the graph above, the applied total displacement is 167.81 mm at the end of the cylinder exposed to the maximum displacement. From the results file, the 'Total Mesh Displacement' at this end of the cylinder is only 91.72 mm.
rbarrett is offline   Reply With Quote

Old   June 21, 2011, 14:48
Default
  #6
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 21
stumpy is on a distinguished road
What is OverallFunction equal to? If it depends on x/y/z did you account for the fact that x/y/z will change during the solution as the mesh moves?
stumpy is offline   Reply With Quote

Old   June 21, 2011, 16:26
Default
  #7
New Member
 
Richard Barrett
Join Date: Jun 2011
Posts: 14
Rep Power: 15
rbarrett is on a distinguished road
The two variables that every CEL expression depends on are 't' and 'aaxis'.... Does the 'aaxis' variable change as mesh deformation occurs?
rbarrett is offline   Reply With Quote

Old   June 21, 2011, 17:35
Default
  #8
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 21
stumpy is on a distinguished road
aaxis is usually just equal to z, unless you have some local coord frame defined. So if the mesh moves in the z direction then yes, aaxis will change.
stumpy is offline   Reply With Quote

Old   June 30, 2011, 14:22
Default
  #9
New Member
 
Richard Barrett
Join Date: Jun 2011
Posts: 14
Rep Power: 15
rbarrett is on a distinguished road
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
Negative Volume during Mesh Motion Analysis giov_ingr FLUENT 2 December 13, 2013 07:09
Dynamic moving mesh Pei-Ying Hsieh (Hsieh) OpenFOAM Running, Solving & CFD 64 June 7, 2012 11:04
a mesh motion question womo CFX 5 March 16, 2011 11:54
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 20:43
mesh motion samad87 FLUENT 0 August 6, 2009 04:15


All times are GMT -4. The time now is 15:12.