CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > STAR-CCM+

Moving piston

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 27, 2010, 09:35
Default Moving piston
  #1
New Member
 
Hans-Petter
Join Date: Apr 2010
Posts: 6
Rep Power: 7
hans-p is on a distinguished road
Hi All,

I am trying to simulate a piston moving upwards in a closed cylinder. I want to use a table for the displacement versus time. It is running when I have specified a constant displacement, but as soon as a table is loaded I get a negative volume error.

Also, I have specified a relatively small displacement for now (25mm of 54 mm total length), later I want to compress the fluid more (like in an Internal Combustion engine). Which method should I use to delete the meshes which are too deformed?

Does anyone have an example or a tutorial of a simpel piston moving in a cylinder?

Appreciate any help

Hans-Petter
MSc student
hans-p is offline   Reply With Quote

Old   April 27, 2010, 19:06
Default
  #2
Member
 
Vinicius Girardi
Join Date: Mar 2009
Location: Sao Paulo, Brazil
Posts: 80
Rep Power: 8
Vinicius is on a distinguished road
Hi Hans

Unfortunatelly, STAR-CCM+ still doesn't have the complete morphing technology from CD-adapco. For large deformations and cases where cells must be added or removed, you have to use STAR-CD.

Vinicius
Vinicius is offline   Reply With Quote

Old   April 29, 2010, 00:35
Default
  #3
Senior Member
 
Join Date: Mar 2009
Posts: 203
Rep Power: 9
Maddin is on a distinguished road
That's not correct! Our support-guy has shown us a CCM simulation of a simple piston compressor. But he wouldn't show us his macro
Maddin is offline   Reply With Quote

Old   April 29, 2010, 08:03
Default
  #4
Member
 
Vinicius Girardi
Join Date: Mar 2009
Location: Sao Paulo, Brazil
Posts: 80
Rep Power: 8
Vinicius is on a distinguished road
Iīve heard about that, but does it have cells that are added and removed?
Vinicius is offline   Reply With Quote

Old   April 29, 2010, 10:52
Default
  #5
Senior Member
 
Join Date: Mar 2009
Posts: 203
Rep Power: 9
Maddin is on a distinguished road
As far as I understand it this sample changed the cell size of some cells, after some steps the will removed and then the macro makes a remesh.
Maddin is offline   Reply With Quote

Old   April 29, 2010, 11:49
Default
  #6
Senior Member
 
Pauli
Join Date: Mar 2009
Posts: 181
Rep Power: 8
Pauli is on a distinguished road
Sounds like the bleeding edge of technology.
Pauli is offline   Reply With Quote

Old   April 30, 2010, 07:35
Default
  #7
New Member
 
Hans-Petter
Join Date: Apr 2010
Posts: 6
Rep Power: 7
hans-p is on a distinguished road
I have got the mesh to move with a table, the file needs to be .csv, the headings needs to be X, Y, Z and time. The time is absolute and the displacement is incremental and in metres. I have even got the mesh to compress a lot without a negative volume error.

I am not deleting/remeshing, but I would like to know how that can be done.

The mesh is polyhedral around the chamber and a mesh is extruded from there with an increasing length. The domain is not cylindrical at this point, it just has a thickness in the plane of the screen.




Here is a picture of the compressed mesh:




Solving it is giving a floating point exception error tough. My CFD lecturer is going to contact CD-adapco to get help for this problem. I will post again if I get it to work. In the meantime any help is appreciated.

Hans-Petter
hans-p is offline   Reply With Quote

Old   May 1, 2010, 02:30
Default
  #8
Senior Member
 
Join Date: Mar 2009
Posts: 203
Rep Power: 9
Maddin is on a distinguished road
I dont think that it will work with that type of moving mesh.
Maddin is offline   Reply With Quote

Old   May 26, 2010, 08:16
Default
  #9
New Member
 
Johannes
Join Date: May 2009
Posts: 16
Rep Power: 8
jopawipr is on a distinguished road
Quote:
Originally Posted by Maddin View Post
As far as I understand it this sample changed the cell size of some cells, after some steps the will removed and then the macro makes a remesh.
Do you have an example of this marco?
jopawipr is offline   Reply With Quote

Old   June 1, 2010, 05:10
Default
  #10
Senior Member
 
Join Date: Mar 2009
Posts: 203
Rep Power: 9
Maddin is on a distinguished road
No sorry, but I think the problem you have is that you move cells to other positions. I think you must work with 2 regions.
one region for the "top" which don't moves and the other region is the region which moves/size changes.
But I'm not sure, I didn't had time to try it...
Maddin is offline   Reply With Quote

Old   June 9, 2010, 23:42
Default
  #11
New Member
 
Jiashing Liu
Join Date: Mar 2009
Posts: 11
Rep Power: 8
anunu is on a distinguished road
Hi,
You can apply the morpher function to finish the motion behavior of the piston. You can find the tutorial of the morpher motion in the user guide.
anunu is offline   Reply With Quote

Old   July 6, 2010, 12:20
Default
  #12
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 637
Rep Power: 12
abdul099 is on a distinguished road
I haven't tried it on my own, but i talked to people who did it before. One region should be enough, you have to use the morpher and a macro. The displacement is read from the table. The morpher will only move vertices regarding to the values from the table, which deforms the cells.
Monitor the mesh quality, and after some time steps, when the mesh qualitiy becomes worse, the macro should stop the solution. Then the surface will be exported as a *.dbs, imported again, the new surface replaces the old one and you can remesh the "new" geometry.
The old solution will be mapped on the new mesh and solution can start again from this mapped solution.
It might be annoying to have to export, import and remesh again, but it seems to be the best possibility how to get a new surface definition for the remeshing. And remeshing is necessary to ensure an appropriate mesh quality if the displacement is too big to do it in one single step.

Best regards
abdul099 is offline   Reply With Quote

Old   July 11, 2011, 11:51
Default Disguising
  #13
New Member
 
Anonimo
Join Date: Jul 2011
Posts: 2
Rep Power: 0
Falc„oC is on a distinguished road
Hello, I found the same problem. I want to move the valve, but in the start position, tha valve is too close to the wall and if it starts to move this volume would be too much long...

I found a way to trick CCM. I did several meshes in diferent instants and import into my simulation. (I turned off the "physics" te way that this new regions do not run together).

I chose this instants to simulation stop, and I go to REPLACE MESH.
Star CCM saves the fields, but replace the old mesh for the new one. I remember that you must calculate the meshes to its boundarys match exactly in the instant "x" (or some parts of the field will disappear)

I'm sorry my english, I wrote it very fast.

Last edited by Falc„oC; July 11, 2011 at 16:26.
Falc„oC is offline   Reply With Quote

Old   July 11, 2011, 13:40
Default
  #14
New Member
 
Anonimo
Join Date: Jul 2011
Posts: 2
Rep Power: 0
Falc„oC is on a distinguished road
My mistake, it's better to import the new mesh after stop the simulation.

att

Last edited by Falc„oC; July 11, 2011 at 16:27.
Falc„oC is offline   Reply With Quote

Reply

Tags
morpher, moving mesh, moving piston

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
gap between the wall and moving piston Nan CFX 10 April 26, 2011 22:04
significant gap between the wall and moving piston Sha FLUENT 4 September 20, 2006 11:15
3.24 Problem with moving piston jojo CD-adapco 1 January 8, 2006 12:27
Mean temperature with moving piston O.Kaario CD-adapco 16 August 23, 2000 11:48
Number of layers for moving piston Hassaneen CD-adapco 1 August 17, 2000 04:43


All times are GMT -4. The time now is 19:42.