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 14, 2020, 03:17
Default Mesh
  #81
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 mesh in the tet region, particularly the small duct, which I suppose is the inlet, is very coarse. This needs to be refined. Do note that only mesh is received by the solver, i.e., Fluent. Therefore, the mesh should represent geometry as closely as possible. As you can observer, the small duct does not have a cylindrical surface at all. For FVM, this does not pose a conservation challenge but certainly the numerics would have oscillations, possibly leading to what you observed.
__________________
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 14, 2020, 06:45
Default
  #82
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
no i get oscillations in the first simulation with part1
but with part2 i get error after running it.
Attached Images
File Type: gif ch.GIF (129.3 KB, 2 views)
File Type: gif part1.GIF (75.3 KB, 3 views)
RJE is offline   Reply With Quote

Old   April 14, 2020, 06:48
Default Part1 and Part2
  #83
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
Which one are you called Part1? Or does Part1 imply keeping everything as single 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 14, 2020, 06:52
Default
  #84
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
this one is part1
Attached Images
File Type: gif part1.GIF (75.3 KB, 2 views)
RJE is offline   Reply With Quote

Old   April 14, 2020, 06:55
Default
  #85
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
Quote:
Originally Posted by srsel6 View Post
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.
he told me also that connection must exist ? should i keep or delete it
RJE is offline   Reply With Quote

Old   April 14, 2020, 06:57
Default Connection
  #86
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
If you keep any connections, then you will have to create interfaces; leading to interpolation error and extra time for interpolation. Connections should only and only be used when you have a moving mesh. Not in dynamic mesh.

There must be some problem with the setup for system with two bodies that is causing trouble. But you should use Part2 and not Part1.
__________________
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 14, 2020, 07:44
Default
  #87
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
ok, for meshing there's no problem if i have photo 1 from one side and photo 2 from the other side ?
2-when running i get from the beginning reversed flow, could u explain why ?
Attached Images
File Type: gif 1.GIF (104.3 KB, 3 views)
File Type: gif 2.GIF (118.1 KB, 3 views)
RJE is offline   Reply With Quote

Old   April 14, 2020, 07:53
Default Setup
  #88
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
I ran a case using conditions based on the images you shared. The graph shows the motion of the piston for first few time-steps. I used two separate bodies. And I used air as working fluid. Since I do not know the material properties for your material nor do I know the pressure or mass flow rate, I applied some arbitrary pressure just enough to push the piston down. Spring constant is 78750 N/m and preload is 877 N; as per your first image. I do not see any wiggles and the motion is quite smooth with 1 ms as time-step.

Since the spring is preloaded, it will push the piston upward with a certain pressure and that depends upon the area of the piston. For a piston with 20 mm diameter, the pressure would be around 2794450 Pa. If the pressure in the cylinder is smaller than that, piston will push the fluid out. If it is higher, piston will be pushed out. So, now you know why there is flow reversal in your case.
Attached Images
File Type: png oilPiston_init.png (31.5 KB, 8 views)
File Type: png motion.png (14.3 KB, 6 views)
__________________
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 14, 2020, 08:06
Default
  #89
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
u mean by motion the displacement of the piston ?
RJE is offline   Reply With Quote

Old   April 14, 2020, 08:12
Default Displacement
  #90
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
Yes, you are correct. What you see in the graph is position of the piston starting from an initial location.
__________________
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 14, 2020, 08:31
Default
  #91
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
i'll try it again then.
u seperate body using split function ?
RJE is offline   Reply With Quote

Old   April 14, 2020, 08:49
Default Body Separation
  #92
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 method does not matter. You can split it using any method. I did not split; I created it that way.
__________________
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 14, 2020, 10:28
Default
  #93
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
hey again,
i'm sorry for disturbing u this much but it still don't working
can i send u my project via mail so that u can discover what's wrong ?
RJE is offline   Reply With Quote

Old   April 14, 2020, 10:31
Default Project
  #94
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
Could you just share the snapshots of your OneDOF setup and dynamic zone setup, including Meshing Option details within Dynamic zone setup? Also, could you tell me the height of each cell layer in the deforming zone?
__________________
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 14, 2020, 10:38
Default
  #95
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
ok the cylinder diameter is 120mm and the lenght is 30mm
for the orifice ; d=4mm and 30mm length
the cell taille du mesh =2mm
Attached Images
File Type: gif 1.GIF (51.5 KB, 2 views)
File Type: gif 2.GIF (51.0 KB, 3 views)
File Type: gif 3.GIF (44.6 KB, 2 views)
File Type: gif 4.GIF (85.7 KB, 2 views)
File Type: gif 5.GIF (85.8 KB, 2 views)
RJE is offline   Reply With Quote

Old   April 14, 2020, 10:42
Default
  #96
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
the piston surface (photo6)
Attached Images
File Type: gif 6.GIF (132.5 KB, 3 views)
File Type: gif 7.GIF (86.7 KB, 3 views)
RJE is offline   Reply With Quote

Old   April 14, 2020, 10:42
Default Layering
  #97
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
Why do you have a deforming zone called layering? Delete that. And then run.
__________________
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 14, 2020, 10:53
Default
  #98
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
yes i have call deforming zone layering.
i delete it but still having same error after 2 step
RJE is offline   Reply With Quote

Old   April 14, 2020, 10:55
Default Error
  #99
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
Is the error related to negative volume?
__________________
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 14, 2020, 10:58
Default
  #100
RJE
Senior Member
 
Jedidi
Join Date: Mar 2020
Posts: 142
Rep Power: 6
RJE is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Is the error related to negative volume?
yes , i try for time step 1e-3 and 1e-4
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 12:00.