|
[Sponsors] |
February 22, 2006, 17:56 |
Is it possible to set a differ
|
#1 |
New Member
Rikard Mikalsen
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX Piston Motion (CEL) | Dante | CFX | 4 | May 28, 2012 06:08 |
motion of piston wave maker | chandra sekhar b | Main CFD Forum | 0 | October 31, 2008 07:06 |
Piston Motion | A Student | Siemens | 0 | April 18, 2006 11:36 |
piston motion | Arpan | Siemens | 1 | March 9, 2006 07:52 |
IC piston motion - deforming meshes | AMV | FLUENT | 0 | September 16, 2003 13:10 |