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

engine geometry file

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 4, 2013, 11:20
Default engine geometry file
  #1
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
Dear Foamers ,

I have a question about engine geometry file for sonicTurbDyMEngineFoam solver ,
What are these boundaries?
curtainInPortPatch ?
curtainInCylinderPatch ?
detachInCylinderPatch ?
detachInPortPatch ?

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM Extend Project: Open Source CFD        |
|  \\    /   O peration     | Version:  1.6-ext                               |
|   \\  /    A nd           | Web:      www.extend-project.de                 |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      engineGeometry;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

conRodLength    conRodLength [0 1 0 0 0 0 0] 0.147;

bore            bore [0 1 0 0 0 0 0] 0.092;

stroke          stroke [0 1 0 0 0 0 0] 0.075;

clearance       clearance [0 1 0 0 0 0 0] 0.015;

rpm             rpm [0 0 -1 0 0 0 0] 1500;


engineTopoChangerMesh  simpleEngineTopoFvMesh;

// Between -deformAngle and deformAngle the piston motion is done
// using deformation and not layering
deformAngle     10;

valvePosTol     1e-4;

layeredMesh     yes;
checkMesh       yes;


piston
{
    patch               piston;

    coordinateSystem
    {
        type            cartesian;
        origin          (0 0 0);
        axis            (0 0 1);
        direction       (0 1 0);
    }

    minLayer        0.0005;
    maxLayer        0.001;
}

valveSplitPoint     (0.003 0 0);    // For the converter
// Two-valve engine valves are split on x
// Four valve engines are split into 4 quadrants in the x-y plane

valves
(
    intakeValve
    {
        // Valve coordinate system
        coordinateSystem
        {
            type            cylindrical;
            origin          (-0.025 0 0);
            axis            (0 0 1);
            direction       (0 1 0);
        }

        // Patch  and zone names
        bottomPatch             valve1;
        poppetPatch             valve2;
        stemPatch               valveStem1;

        curtainInPortPatch      valveCurtainPort1;
        curtainInCylinderPatch  valveCurtainCyl1;

        detachInCylinderPatch   valveDetachCyl1;
        detachInPortPatch       valveDetachPort1;

        detachFaces
        (
        );

        // Vertex on edge of the step.  For the converter
        stemEdge            (-0.04 0 -0.0075);

        // Valve diameter
        diameter            0.03;

        // Minimum valve lift
        minLift             0.00025;

        // Layer thickness
        minTopLayer         0.0005;
        maxTopLayer         0.001;

        minBottomLayer      0.0005;
        maxBottomLayer      0.001;

        // Lift Profile
        liftProfileFile "intakeLiftProfileFile";
    }

    exhaustValve
    {
        // Valve coordinate system
        coordinateSystem
        {
            type            cylindrical;
            origin          (0.025 0 0);
            axis            (0 0 1);
            direction       (0 1 0);
        }

        // Patch  and zone names
        bottomPatch             valve3;
        poppetPatch             valve4;
        stemPatch               valveStem2;

        curtainInPortPatch      valveCurtainPort2;
        curtainInCylinderPatch  valveCurtainCyl2;

        detachInCylinderPatch   valveDetachCyl2;
        detachInPortPatch       valveDetachPort2;

        detachFaces
        (
        );

        // Vertex on edge of the step.  For the converter
        stemEdge           (0.04 0 -0.0075);

        // Valve diameter
        diameter            0.03;

        // Minimum valve lift
        minLift             0.00025;

        // Layer thickness
        minTopLayer         0.0005;
        maxTopLayer         0.001;

        minBottomLayer      0.0005;
        maxBottomLayer      0.001;

        // Lift Profile
        liftProfileFile "exhaustLiftProfileFile";
    }

);

// ************************************************************************* //
Actually I found a 2D case and I want to simulate a 3D case that the images for both of them attached. I guess the detachInCylinderPatch and detachInPortPatch are two boundaries that generated when a valve closed.Also curtainInPortPatch and curtainInCylinderPatch are for using sliding mesh. But I don't know where are they in my case and how can I create them? in the 2D case they are in middle of two blocks and mesh generated at two side of them.

Can anyone explain about these boundaries?
where are they in my case?
How can I creat them?

Thanks and best regards ,
Sasan.
Attached Images
File Type: jpg c2.jpg (11.3 KB, 26 views)
File Type: jpg c1.jpg (10.3 KB, 19 views)
sasanghomi is offline   Reply With Quote

Old   March 4, 2013, 13:29
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
You'll have to use setSet (since I assume you are using 1.6-ext) to select faces and turn them into faceZones. From then you can create the patches with createPatch.
mturcios777 is offline   Reply With Quote

Old   March 4, 2013, 13:45
Default
  #3
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
Dear Marco ,
Thanks for your reply
I am using Gambit for 3D simulation I think that I must split my geometry with a face to creat these boundaries. But my problem is that I dont know where are these boundaries in my 3D geometry...Can you explain these boundaries?where are they exactly?

Thanks,
Sasan
sasanghomi is offline   Reply With Quote

Old   March 4, 2013, 13:50
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
You should look at the code for the particular type of engine mesh you are using (I think its an engineTopoChangeMesh), in $FOAM_SRC/engine/engineTopoChangeMesh/.

There is also a pdf presentation from PoliTecnico De Milano that explains a lot, since they developed a lot of them. That and lots of other stuff at:
http://openfoam-extend.sourceforge.n...tion_and_Spray
mturcios777 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM 23 July 10, 2015 09:44
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04:26


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