CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Changing piston motion profile in engineFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2006, 18:56
Default Is it possible to set a differ
  #1
New Member
 
Rikard Mikalsen
Join Date: Mar 2009
Posts: 10
Rep Power: 17
kukikano is on a distinguished road
Is it possible to set a different piston motion profile in the engineFoam solver in a simple way? (To investigate innovative engine design.) Say, I want the piston height simply to be equal to a*cos(crankAngle)+b, instead of the current function which includes the ratio of connecting rod length to crankshaft radius.

I am not fluent in C++ (nor OpenFOAM), so your help on this would be appreciated. By looking through the source files I have found that the file $HOME/OpenFOAM/OpenFOAM-1.2/src/engine/engineTime/engineTime.C appears to set the piston position based on the crank angle. (The "scalar engineTime::pistonPosition(const scalar theta) const" expression.) I tried to modify the expression and run wmake in OpenFOAM-1.2/src/engine/, but with no effect on the simulations.

I may be off-beam in my attempts but this should be a fairly simple thing to do, right?

Thanks,

Rikard
kukikano is offline   Reply With Quote

Old   February 23, 2006, 03:11
Default Hello Rikard, You found the
  #2
Member
 
Guido Adriaensen
Join Date: Mar 2009
Posts: 56
Rep Power: 17
guido_adriaensen is on a distinguished road
Hello Rikard,

You found the correct file for the piston motion. You should indeed change the file at the part you specified. I think that what is going wrong is the compilation. Did you run run wmake of wmake libso? You should use the latter since these files are the libraries for the engineFoam solver. (If I'm saying something wrong, please correct me). If you look at the file files in the make directory you can see that it should create a lib.

Guido
guido_adriaensen is offline   Reply With Quote

Old   February 23, 2006, 09:10
Default Hi Guido, You are right, th
  #3
New Member
 
Rikard Mikalsen
Join Date: Mar 2009
Posts: 10
Rep Power: 17
kukikano is on a distinguished road
Hi Guido,

You are right, the compilation was the problem. 'wclean' and 'wmake libso' did the trick, now it all works like I want it to. Thanks a lot!

Rikard
kukikano is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX Piston Motion (CEL) Dante CFX 4 May 28, 2012 07:08
motion of piston wave maker chandra sekhar b Main CFD Forum 0 October 31, 2008 08:06
Piston Motion A Student Siemens 0 April 18, 2006 12:36
piston motion Arpan Siemens 1 March 9, 2006 08:52
IC piston motion - deforming meshes AMV FLUENT 0 September 16, 2003 14:10


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