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

engine simulation with mesh motion and topological changes

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

Like Tree3Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   December 16, 2010, 12:55
Default engine simulation with mesh motion and topological changes
  #1
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 6
abminternet is on a distinguished road
Hi guys,

I have been trying to figure out how to set up a case for a cold flow simulation of an ic engine. I found a tutorial using an old solver which is no loger present in openfoam 1.6-ext (neither in 1.5-ext), and I would like to learn how to set up a case with the newer OF versions. Has anybody had any success? I am trying my luck with sonicTurbDyMEngineFoam without success. In my first attempt I used mesh motion only without topological changes, using the velocityLaplacian solver, and the piston moved slightly, then I tried setting it up with laplacdFaceDecomposition solver, but it gets stucked as soon as it gets to mesh.update(). I am really not sure if I have set up the case, and it appears to be almost no information on the net or forums, and the little information there is, is for previous versions using libraries that are apparently not there any more. Any ideas???
I would very much appreciate it.

Frederic Muller
abminternet is offline   Reply With Quote

Old   December 18, 2010, 11:37
Default
  #2
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Can you send me ur tutorial. I have some experiences with engineDyMFoam for 1.5-dev. I propably can help u, at least with the mesh motion. I know this is a quite challenging topic.

Regards
Peter
Peter_600 is offline   Reply With Quote

Old   December 20, 2010, 05:16
Default
  #3
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 6
abminternet is on a distinguished road
Hi Peter,

thanks for your reply. I have attached the tutorial file i got for an older OpenFOAM-ext version. there, -270 is the initial time directory, I had to remove the rest of them, except for the last one, because it was too big to upload here, but if you need the rest of the time directories please let me know and I will find a way to upload them. I appreciate any guidelines you could give me.

best regards,
Alberto
Attached Files
File Type: gz simpleEngine.tar.gz (71.5 KB, 228 views)
abminternet is offline   Reply With Quote

Old   December 20, 2010, 07:26
Default help
  #4
New Member
 
Josiah Xu
Join Date: Jan 2010
Posts: 8
Rep Power: 7
faithhidy is on a distinguished road
Hi Peter,

You said you have experience on the engineDyMFoam in 1.5-dev. Do you mean "icoDyMEngineFoam" ?
Curently, I am also troubled by using "simpleEngine" case to realize the mesh layerAdditionRemoval. If you run it succesfully,please help me.

Can you send me your case? My email address is faithhidy@hotmail.com .

Merry Christmas to you~

Josiah
faithhidy is offline   Reply With Quote

Old   December 20, 2010, 07:44
Default
  #5
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
For the moment I still struggling with installing 16-ext in my system. I will come back to u guys as soon as possible. you can also contact me on my email.
Peter_600 is offline   Reply With Quote

Old   December 20, 2010, 08:16
Default
  #6
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 6
abminternet is on a distinguished road
@Josiah: Hey Josiah, I think we are stuck at the same part. I am trying to use sonicTurbDyMEngineFoam, and am also stuck with the topological changes. Mesh motion without topological changes seems to work, but I have only tried it with the velocityComponentLaplacian solver. Of course this is not enough, there is very little information about dictionary setup, etc, available. If you know anything please let me know, and I'll do the same for you.

@Peter: sure thing, don't worry, if we can be of help, please let us know.
abminternet is offline   Reply With Quote

Old   January 8, 2011, 08:17
Default
  #7
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Ok guys. I am ready Sorry for the big delay.
I would suggest we open a new group for ic engine simulations. Since something like this doesen t really exist. I opened a discussion group http://www.extend-project.de/user-gr...s/viewgroup/48. Join this group! We can discuss our projects together.
yvyan likes this.
Peter_600 is offline   Reply With Quote

Old   January 8, 2011, 10:21
Default
  #8
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 386
Rep Power: 15
deepsterblue will become famous soon enough
Will something like this work? The only limitation is that you would be restricted to pure tetrahedral / triangular meshes.

http://www.ecs.umass.edu/~smenon/Mov...stonMotion.avi

This stuff is already in 1.6-ext. Look at the circCylinder3d tutorial for some ideas. I can probably try and help you guys set it up, so let me know.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   January 8, 2011, 14:30
Default
  #9
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
This is great
This is exactly what I am looking for. I will like to set up a case. Do u think it is also possible with spray interaction? I would like to simulate a direct injection engine, with spray....
Do you thin it s possible to use it with dieselEngineFoam?

Peter
Peter_600 is offline   Reply With Quote

Old   January 8, 2011, 14:35
Default
  #10
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 386
Rep Power: 15
deepsterblue will become famous soon enough
I'm pretty sure it would be possible. The code for cloudMapping is not in there yet, but I think that should be taken care of with just one line of code. I would suggest getting getting the mesh to work first, then adding a flow solver, and finally adding the spray stuff.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   January 8, 2011, 14:58
Default
  #11
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Great I will do my best and working hard on it. Hope to provide you guys soon with a solution and of course everyone is welcome in contributing to it.

Peter
Peter_600 is offline   Reply With Quote

Old   January 13, 2011, 06:07
Default
  #12
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 6
abminternet is on a distinguished road
wow that is really amazing, it is also exactly what I am trying to do is it possible to do the same with 2 tilted valves? if you could help us set up this case, we would really appreciate it I have been trying for a while now, I've only got to moving the piston with layering, but as soon as I introduce the valves (straight in 2D still ) it doesn't go past the first iteration. Any ideas??

best regards,
abm
abminternet is offline   Reply With Quote

Old   January 13, 2011, 09:38
Default
  #13
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 386
Rep Power: 15
deepsterblue will become famous soon enough
The video there uses two tilted valves - so no problem there. I can probably try and set up a simple demo case, but that might take me a little time, so I may not be able to get to it immediately.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   January 13, 2011, 10:27
Default
  #14
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 6
abminternet is on a distinguished road
Thanks I would really appreciate it, I have been struggling with this for quite some time now. Are you using 1.5-dev or 1.6-dev? I guess the setup will be pretty much the same anyways. Don't worry if it takes you a while, any help you can provide now will be very much appreciated. I am really looking forward to seeing how you did that
abminternet is offline   Reply With Quote

Old   January 13, 2011, 14:49
Default
  #15
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Me too
@abminternet
i am working for the moment on a modification of the accordionEngineMesh class. I try to add to the piston motion a layering. If you have experiences in it we can create a new class in the meantime.
Peter
Peter_600 is offline   Reply With Quote

Old   January 14, 2011, 05:54
Default
  #16
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 6
abminternet is on a distinguished road
@Peter: Hi Peter, my programming skills are a bit limited but I would be quite interested on that, but I thought the accordionEngineMesh class already performed layering for the piston, am I mistaken?

Last edited by abminternet; January 14, 2011 at 06:18.
abminternet is offline   Reply With Quote

Old   January 15, 2011, 09:53
Default
  #17
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
I ve done somet simulation with the accordion class. And it uses no layering.
Have u seen someone who did that?
I will try to add it But it will take me a while since I am also not so good in C++. Which strategies do u use for moving the mesh and which version of OpenFoam do u use?
Peter_600 is offline   Reply With Quote

Old   January 18, 2011, 05:20
Default
  #18
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 6
abminternet is on a distinguished road
I haven't actually used it or seen it work, but the description of the class at the beginning of the code says that layers are added and removed for the piston.

perhaps the class is not complete? let me know of your progress and if I can help, as I am also interested .
At the moment I am using OpenFOAM 1.6-ext, with sonicTurbDyMEngineFoam.
dynamicFvMesh simpleEngineTopoFvMesh;
solver laplaceFaceDecomposition;
diffusivity uniform 1.0;

it seems it only works with solvers based on the laplace equation for motion. Even though I still don't get past the first iteration :S, it seems to update the mesh, but I'm having troubles with my Temperature Boundary conditions. I am working at the moment with vertical valves while I get to know how it all works, but my aim is to do tilted valves with edge swapping and smoothing, or something similar so I'll be glad to see Sandeep's test case
abminternet is offline   Reply With Quote

Old   January 18, 2011, 14:16
Default
  #19
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 386
Rep Power: 15
deepsterblue will become famous soon enough
I've posted a simple case for tilted valves. Use with moveDynamicMesh. It should be sufficient to give an idea about how it would be done.

You can find the necessary files here:

http://www.ecs.umass.edu/~smenon/tarballs/enginePointPatchFields.tgz

http://www.ecs.umass.edu/~smenon/tarballs/simpleEngine.tgz

It's probably helpful to use ParaView to see how the patches are defined.
loesch and fumiya like this.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   January 18, 2011, 14:16
Default
  #20
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Since you are also using 1.6-ext, could you check if the dieselFoam tut runs for you to the end? For me it doesn t. I would like to include this solver, too. So I have to be sure if this is a bug or my Foam verison doesnt work properly.

I am also waiting unpaticently on the test case of Sandeep

Last edited by Peter_600; January 31, 2011 at 05:23.
Peter_600 is offline   Reply With Quote

Reply

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


LinkBacks (?)
LinkBack to this Thread: http://www.cfd-online.com/Forums/openfoam/83177-engine-simulation-mesh-motion-topological-changes.html
Posted By For Type Date
Untitled document This thread Refback February 4, 2014 12:36

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic moving mesh Pei-Ying Hsieh (Hsieh) OpenFOAM Running, Solving & CFD 64 June 7, 2012 10:04
engine simulation with mesh motion and topological changes abminternet OpenFOAM 0 December 16, 2010 12:47
Good mesh for pistoncylinder application Serkan Cetin OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 4 November 3, 2010 08:36
Radiation and miscellaneous enhancements vtk_fan OpenFOAM Running, Solving & CFD 6 February 18, 2008 00:49
Valve action Hrvoje Jasak (Hjasak) OpenFOAM Running, Solving & CFD 0 January 13, 2005 14:23


All times are GMT -4. The time now is 09:38.