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   March 24, 2011, 06:28
Default
  #61
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 5
abminternet is on a distinguished road
Hey Ralph,

i am guessing u ran the case with laminar flow right? Cause I got the same error when I ran it with laminar flow (it ran longer)
abminternet is offline   Reply With Quote

Old   March 24, 2011, 09:55
Default
  #62
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 5
abminternet is on a distinguished road
Got kEpsilon running (well til 730 CAD but still )
abminternet is offline   Reply With Quote

Old   March 25, 2011, 05:46
Default
  #63
Member
 
Join Date: Jun 2010
Posts: 33
Rep Power: 6
RalphS is on a distinguished road
Quote:
Originally Posted by abminternet View Post
Got kEpsilon running (well til 730 CAD but still )

With deformAngle 5 , the simulation will run til 990
RalphS is offline   Reply With Quote

Old   March 25, 2011, 06:06
Default
  #64
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,728
Rep Power: 20
hjasak will become famous soon enough
Yeah, I've made one myself - attached. It has got proper boundary conditions a MUCH nicer layering mesh, I've checked the motion for fill 990 and solver is still running.

I will put this in as a tutorial. You may see little changes because I am changing the code at the same time to make things prettier, but this is what the setup should look like. I did not automate the case setup using Allrun - can someone please have a look. Regarding the sets and zones, please use setSet and give it batch command file - it is better than the dictionary.

Thank you all for kicking my vack side to do this BTW, in the next release you will get topological changes and engine simulations running in parallel, special engine parallel decomposition classes and a rewrite of domain decomposition and reconstruction tools in the presence of topo changes. All this courtesy of a sponsored project at Wikki (Thank You for supporting us).

Enjoy,

Hrv
Attached Files
File Type: gz simpleEngine_HJ_25Mar2011.tar.gz (11.1 KB, 171 views)
__________________
Hrvoje Jasak
hjasak is offline   Reply With Quote

Old   March 25, 2011, 12:07
Default
  #65
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,728
Rep Power: 20
hjasak will become famous soon enough
All done and dusted - 990 degrees of flow running nicely.

Signing off,

Hrv
__________________
Hrvoje Jasak
hjasak is offline   Reply With Quote

Old   March 31, 2011, 06:29
Default Allrun Allclean
  #66
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 5
abminternet is on a distinguished road
Ok guys, I put together an Allrun and Allclean scripts, I add the attach/detach faces in the faceSets created to the engineGeometry file in the script, so that made it a bit more complicated, but now it is fully automated I was working with uncompressed files, so in case you work with compressed files, minor modifications may be needed.

Best regards,
abm
Attached Files
File Type: gz Allclean.sh.gz (186 Bytes, 30 views)
File Type: gz Allrun.sh.gz (756 Bytes, 75 views)
abminternet is offline   Reply With Quote

Old   April 1, 2011, 05:48
Default Correct Allclean.sh
  #67
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 5
abminternet is on a distinguished road
oops, Allclean.sh doesn't seem to be doing the job, here goes a corrected version.
Attached Files
File Type: gz Allclean.sh.gz (236 Bytes, 50 views)
abminternet is offline   Reply With Quote

Old   April 2, 2011, 08:01
Default
  #68
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 6
Peter_600 is on a distinguished road
HI abm

I had a look on your case (cleaned up by Mr Jasak). Nevertheless, when I use your Allrun file, I get the following error

Quote:
--> FOAM FATAL IO ERROR:
keyword dynamicFvMesh is undefined in dictionary "/home/peter/OpenFOAM/peter-1.6-ext/run/simpleEngine/constant/dynamicMeshDict"

file: /home/peter/OpenFOAM/peter-1.6-ext/run/simpleEngine/constant/dynamicMeshDict from line 17 to line 24.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 396.

FOAM exiting
Before I will try to fix it by myself, I just wanted to clarify some things.
Do you use exactly the same case which Mr Jasak has uploaded? Otherwise would you mind to upload your case.

Thank you very much
Peter
Peter_600 is offline   Reply With Quote

Old   April 4, 2011, 05:56
Default
  #69
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 5
abminternet is on a distinguished road
Hey Peter,
sure thing, here goes the case, in fact I will send u one where I added the stems to the valves. U r right, the case as Prof. Jasak sent it does not run, this is because as he said in an earlier message, he is modifying the code at the same time for the next release, so some things may be in different places. If i remember correctly, it was just adding the motion solver to the dynamicMeshDict, because he put it in engineGeometry for the next release.

So I will post the case with the stem, it is exactly the same but with the stems for the valves
Attached Files
File Type: gz simpleEngineStem.tar.gz (10.5 KB, 147 views)
abminternet is offline   Reply With Quote

Old   April 4, 2011, 06:11
Default
  #70
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 6
Peter_600 is on a distinguished road
Thx !
I will have a look on it!
cheers peter
Peter_600 is offline   Reply With Quote

Old   April 9, 2011, 17:29
Default
  #71
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 6
Peter_600 is on a distinguished road
Works like a charm Thank you!
Peter_600 is offline   Reply With Quote

Old   April 13, 2011, 17:09
Default
  #72
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 6
Peter_600 is on a distinguished road
I was wondering if anyone of you managed to run an engine simulation with topological changes in parallel like it is announced for the the 1.6-ext version?

Peter
Peter_600 is offline   Reply With Quote

Old   April 14, 2011, 01:17
Default
  #73
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 229
Rep Power: 11
kalle is on a distinguished road
Hi! I think 1.6-ext is not much more parallel than 1.5-dev when it comes to engines. Parallelization of topological changes is for 1.7-ext (as Jasak mentions above)

Regards,
K
kalle is offline   Reply With Quote

Old   April 14, 2011, 04:57
Default
  #74
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 5
abminternet is on a distinguished road
Hey guys, so I am trying to do a simulation of a real engine now, but there is a complication, the pistons are typically not flat but they have a bowl. So I was wondering if anybody has done this, or any ideas on how to do it? I was thinking using tetras for the inner bowl, and at the top of it, continue with prisms (that would make the connection between the tetras and prisms doable without a ggi). But then, I would need to move the bowl as a whole, and start doing the layering only in the prism part (cylinder). Does anyone know what I would need to change for this? I noticed a very early engine solver icoDyMFoamEngine, which also did topological changes (not to be confused with icoDyMEngineFoam) used to variables, offset and delta, to choose which cell layers to do the layering on.
abminternet is offline   Reply With Quote

Old   April 14, 2011, 16:24
Default
  #75
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 6
Peter_600 is on a distinguished road
Thank you for the answer kalle!

@abminternet The accordionEngine class has this feature what you are looking for. You can specify cells in the piston bowl which will move without being deformed but it has no layering for the swept volume.
Please tell me what kind of engine do you want to simulate. Probably I can help you out. I have added to the accordionclass the piston layer function. Since the piston of my engine is flat, I haven t tested the bowl function, but it s supposed to work as well.
Peter
Peter_600 is offline   Reply With Quote

Old   April 15, 2011, 05:32
Default
  #76
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 5
abminternet is on a distinguished road
Hi Peter,

The engine is a diesel engine with straight valves. So how did you go about the accordion engine mesh class? I mean, at the moment, the solver, sonicTurbDyMEngineFoam, uses the simpleEngineTopoFvMesh class, which uses the simpleEnginePiston class. Which solver are you using, is it also sonicTurbDyMEngineFoam? and how did you get it to use the accordionEngineMesh? if I try to set dynamicFvMesh to accordionEngineMesh instead of simpleEngineTopoFvMesh, I get an error, it says it is not a valid dynamicFvMesh.
Another question is, the description of the class says it is for canted valves, does this functionality work well? and can it do stright valves too?

Also, I saw that the layerAR class has this offset and delta funcitonality too for the layering, but I don't know where to implement it, any ideas?

Thanx
abminternet is offline   Reply With Quote

Old   April 16, 2011, 06:28
Default
  #77
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 6
Peter_600 is on a distinguished road
In order to use the accordionEngineMesh you have to take the engineTopoChangerMesh instead of the simpleEngineTopoFvMesh. Since you are modeling diesel engines, the accordionEngineMesh won t be the right class for you in my opinion. It has the capability for canted valves, which is a great feature, but in your case unnecessary. It uses an automatic mesh motion solver. It works very nice but requires in my opinion a lot of computational recources. I think with vertical valves, you can circumvent it and go for layering, as you are anyway already doing.
Nevertheless, the piston points movement what are you looing for is there implemented. I think it needs the entry in the engineGeometry file "pistonAuxPoints". In my case the piston is flat, hence I specify just an empty list for the piston points.
If you are lucky you will find this feature already implemented with the stuff you need. Just have a look in all of the engine classes. Otherwise, take it from there and make your own class.
I hope there is someone out there who can help you more. I am pretty sure a lot of useres have beenn faced by this issue already.


cheers peter
Peter_600 is offline   Reply With Quote

Old   April 16, 2011, 06:30
Default
  #78
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 6
Peter_600 is on a distinguished road
check the engineTopoChangerMesh class ->verticalValves.
This can be probably a good start.
Peter_600 is offline   Reply With Quote

Old   April 18, 2011, 05:22
Default
  #79
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 5
abminternet is on a distinguished road
Hey Peter,

Thanx for the tips, one question though, I seem to be a bit confused. So I am using sonicTurbDyMEngineFoam and it includes engineTopoChangerMesh.H already, so simpleEngineTopoFvMesh is selected in the dynamicMeshDict, but there, if I select accordionEngineMesh it gives me an error
Valid dynamicFvMesh types are :

19
(
dynamicTopoFvMesh
simpleEngineTopoFvMesh
attachDetachFvMesh
linearValveLayersFvMesh
multiMixerFvMesh
linearValveFvMesh
dynamicBoxFvMesh
dynamicMotionSolverFvMesh
mixerGgiFvMesh
movingConeTopoFvMesh
turboFvMesh
dynamicBodyFvMesh
subsetMotionSolverFvMesh
solidBodyMotionFvMesh
dynamicRefineFvMesh
mixerFvMesh
dynamicInkJetFvMesh
movingBoxFvMesh
staticFvMesh
)
any ideas?

(BTW, I am also interested in tilted valves , hence the problem )
abminternet is offline   Reply With Quote

Old   April 18, 2011, 05:47
Default
  #80
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 6
Peter_600 is on a distinguished road
If you want to use the verticalValves class you need use in the engineGeometry file ->

engineTopoChangerMesh verticalValves
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
IC engine with topological mesh changes in OF2.1.x - OpenFOAM®-Extend Discussion Board - The OpenFOAM® Extend Project This thread Refback February 4, 2014 11: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 11: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 17, 2008 23:49
Valve action Hrvoje Jasak (Hjasak) OpenFOAM Running, Solving & CFD 0 January 13, 2005 13:23


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