CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   engine geometry file (http://www.cfd-online.com/Forums/openfoam/114052-engine-geometry-file.html)

sasanghomi March 4, 2013 11:20

engine geometry file
 
2 Attachment(s)
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.

mturcios777 March 4, 2013 13:29

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.

sasanghomi March 4, 2013 13:45

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

mturcios777 March 4, 2013 13:50

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


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