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

Piston-fluid simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2020, 15:31
Default Two parts
  #61
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
This is because you might have created separate parts. All that's needed are separate bodies but these bodies should belong to same part. Then, you won't have any mesh interface.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 12, 2020, 16:07
Default
  #62
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
that's true but i have all really seperate bodies only but i come out with the same problem in meshing
RJE is offline   Reply With Quote

Old   April 12, 2020, 16:30
Default Meshing
  #63
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
In Ansys Meshing Tree, check if it shows single part or multiple parts. If it shows single part and you still get mesh interfaces in Fluent, then you have to check which boundaries are listed under mesh interfaces in Fluent.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 12, 2020, 16:37
Default
  #64
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
1-i said the problem when i set it as bodies of the same part in on meshing and not in interfaces.
2- when plotting velocity or or displacement vs time in a specific surface eg : the piston , do u know how?
Attached Images
File Type: gif C.GIF (134.5 KB, 7 views)

Last edited by RJE; April 12, 2020 at 19:39.
RJE is offline   Reply With Quote

Old   April 13, 2020, 04:31
Default Splitting
  #65
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Image makes the reason for interface clear. You need to keep both bodies, small duct and upper portion of the cylinder shown in the image, as separate bodies but in a single part, the way you have it right now. But you need to have a third body, which is lower portion of the cylinder, the one that will deform. Only that portion should have sweep mesh. The bodies shown in the image can have any type of mesh.

The reason for the interface is the existence of connections. For CFD, you should ensure that there are no Connections or Contacts at Meshing stage. Delete all the contacts under Connections and remesh. Do include the third body.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 13, 2020, 06:30
Default
  #66
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
the third body should exist in the same part ?
RJE is offline   Reply With Quote

Old   April 13, 2020, 08:00
Default Part
  #67
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
You have should only one part but either two or three bodies. The lower cylinder portion that will go under deformation should always be a separate body. The upper portion of the cylinder that has small duct attached could be either separate from the small duct or could be combined with the small duct. Part should always be one.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 13, 2020, 08:44
Default Result-simulation
  #68
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
Yes i get that.
However while running the simulation , i get out the plot of velocity and displacement vs time of the piston (moving), but i'm not sure about the result i get , because while entering the fuid with a pressure which increase little by little with time (pressure photo) , i was looking for a result like that this last photo and i don't really find an explanation for the sinusoide part in the beginning of the plot of velocity
Attached Images
File Type: jpg velocity.jpg (50.3 KB, 1 views)
File Type: jpg displacement.jpg (50.2 KB, 1 views)
File Type: jpg pressure.jpg (52.2 KB, 2 views)
File Type: jpg 92847748_674773686619906_8168866387826049024_n.jpg (41.6 KB, 3 views)
RJE is offline   Reply With Quote

Old   April 13, 2020, 09:45
Default Oscillations
  #69
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
The oscillations could be physical or numerical. Try animating the piston with every time-step and observe it the piston really goes in the manner depicted by graph.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 13, 2020, 11:04
Default
  #70
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
ok i'll try that.
i have few other questions :
1-sometimes while running the simulation i get this warning "floating point exception", although my time step is very small e-3 or e-4 , i think the some is diverging ?
2-i want to have video of velocity for eg , what should i do to get this video and not just an animation solution
RJE is offline   Reply With Quote

Old   April 13, 2020, 13:47
Default
  #71
Member
 
Join Date: Jun 2017
Posts: 55
Rep Power: 10
srsel6 is on a distinguished road
RJE,

Are you still having the "negative cell volume" problem?

We are doing something similar and I've managed to solve the problem

For the piston chamber, use the sweep method when meshing. Then in Fluent, select Layering and smoothing. Set spring constant factor to 0.3 and convergence tolerance to 0.001. These settings seem to work for me.
srsel6 is offline   Reply With Quote

Old   April 13, 2020, 13:56
Default
  #72
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
yes sometimes i get negatives cell zones and sometimes i get this warning "floating point exception",
ok i 'll try that but i try sweeping last time in the piston zone, although that , they put some triangles although i oblige meshing to be all quad
RJE is offline   Reply With Quote

Old   April 13, 2020, 14:05
Default
  #73
Member
 
Join Date: Jun 2017
Posts: 55
Rep Power: 10
srsel6 is on a distinguished road
I forgot to add, since the sweep method gives you a layered mesh, I set my timestep in such a way that the piston only moves a maximum of 20% of the cell height (at the highest velocity)
srsel6 is offline   Reply With Quote

Old   April 13, 2020, 14:53
Default
  #74
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
how can i do that ?
RJE is offline   Reply With Quote

Old   April 13, 2020, 15:21
Default
  #75
Member
 
Join Date: Jun 2017
Posts: 55
Rep Power: 10
srsel6 is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Though dynamic mesh does not care about it but the zone should be fluid and not solid because the zone represents the gas region. As far as piston is concerned, only its crown is important. Rest of the walls represent side wall of cylinder and cylinder head. Gravity is not essential. If the height of one layer of mesh is close to 0.002 m, then your setup is correct. However, your time-step could be too high. You should test your case with 1e-3 or 1e-4 s. The other option is to calculate the velocity manually and then determine what \Delta t you should use. This can be done by integrating Newton's equation for motion with mass of piston as mass and the force of preloaded spring as force. But 1e-3 or 1e-4 should work.
vinerm has explained it here already.

time step (t) = 0.2*cell height (d) / max velocity (v)
srsel6 is offline   Reply With Quote

Old   April 13, 2020, 15:33
Default
  #76
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
i tried already this way but i get the same pb
RJE is offline   Reply With Quote

Old   April 13, 2020, 15:47
Default
  #77
Member
 
Join Date: Jun 2017
Posts: 55
Rep Power: 10
srsel6 is on a distinguished road
Quote:
Originally Posted by RJE View Post
i tried already this way but i get the same pb

Have you made sure the upper section and the lower section are separate bodies? Meaning you should have 2 bodies. 1 body where it is completely static and the other where a dynamic mesh is applied. An interface will then be necessary to connect the two together without facing negative cell volume issues.

In my case, that is what I did. In Solidworks I made them all separate bodies (4 bodies). I loaded them into design modeller and combined necessary parts using the "form new part" function. However I made sure to keep the dynamic mesh zone as its own single body so I can apply a swept mesh and use the layering technique.
srsel6 is offline   Reply With Quote

Old   April 13, 2020, 16:30
Default
  #78
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
yes i have made 2 bodies in the same part
i mesh the body close to the piston with mutizone option (quad) and the rest with tetra, but for the connexion? there is nothing
Attached Images
File Type: gif Cap.GIF (107.9 KB, 5 views)
RJE is offline   Reply With Quote

Old   April 13, 2020, 16:37
Default
  #79
Member
 
Join Date: Jun 2017
Posts: 55
Rep Power: 10
srsel6 is on a distinguished road
Quote:
Originally Posted by RJE View Post
1-i said the problem when i set it as bodies of the same part in on meshing and not in interfaces.
2- when plotting velocity or or displacement vs time in a specific surface eg : the piston , do u know how?
The connections can be seen by clicking on the "plus" sign. Can you post a picture of your mesh?
srsel6 is offline   Reply With Quote

Old   April 13, 2020, 16:46
Default
  #80
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
yes, i sign up for connexions and there's nothing inside.
here's the picture of the mesh
Attached Images
File Type: gif ch.GIF (129.3 KB, 6 views)
RJE 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
AVL FIRE ESE Diesel piston simulation initial condition rdrd4u AVL FIRE 1 July 15, 2015 01:53
Simple piston movement simulation ReVl27 FLUENT 1 February 20, 2015 08:28
variable density in single fluid simulation not running with total energy viking CFX 2 September 18, 2012 20:19
Expert parameter to stop the fluid flow simulation KK CFX 1 February 25, 2008 16:29
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 17:03.