|
[Sponsors] |
December 24, 2019, 16:03 |
Axisymmetric jet
|
#1 |
New Member
Avishai
Join Date: Dec 2019
Posts: 1
Rep Power: 0 |
hi,
i'm new with openFOAM (OF) and a little bit confused by all the commands that changed with OF versions. Please advice me how to learn OF from up-to date materials. In addition i try to run an axisymmetric jet simulation and i cant seem to find enough material. Nevertheless, with code i found in github i managed to construct a case that succeed to run however only for one time step. Attached code: 0/p: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type zeroGradient; } atmosphere { type totalPressure; p0 uniform 0; } #includeEtc "caseDicts/setConstraintTypes" } Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Uinlet (10 0 0); dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type fixedValue; value uniform $Uinlet; } atmosphere { type pressureInletOutletVelocity; value uniform (0 0 0); } #includeEtc "caseDicts/setConstraintTypes" } // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // backgroundMesh { length 25; rA 0.5; // radius of inlet patch rB 4; // outer radius lengthCells 250; rAcells 10; rBcells 50; } convertToMeters 1; vertices ( ( 0 0 -1) ($:backgroundMesh.length 0 -1) ( 0 $:backgroundMesh.rA -1) ($:backgroundMesh.length $:backgroundMesh.rA -1) ( 0 $:backgroundMesh.rB -1) ($:backgroundMesh.length $:backgroundMesh.rB -1) ( 0 0 0) ($:backgroundMesh.length 0 0) ( 0 $:backgroundMesh.rA 0) ($:backgroundMesh.length $:backgroundMesh.rA 0) ( 0 $:backgroundMesh.rB 0) ($:backgroundMesh.length $:backgroundMesh.rB 0) ); blocks ( hex (0 1 3 2 6 7 9 8) ($:backgroundMesh.lengthCells $:backgroundMesh.rAcells 1) simpleGrading (1 1 1) hex (2 3 5 4 8 9 11 10) ($:backgroundMesh.lengthCells $:backgroundMesh.rBcells 1) simpleGrading (1 1 1) ); edges ( ); boundary ( inlet { type patch; faces ( (0 6 8 2) ); } front { type symmetry; faces ( (6 7 9 8) (8 9 11 10) ); } back { type symmetry; faces ( (0 1 3 2) (2 3 5 4) ); } atmosphere { type patch; faces ( (4 5 11 10) (5 3 9 11) (3 1 7 9) ); } ); mergePatchPairs ( ); // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object extrudeProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // constructFrom patch; sourceCase "$FOAM_CASE"; sourcePatches (front); exposedPatchName back; extrudeModel wedge; sectorCoeffs { axisPt (0 0 0); axis (1 0 0); angle 5; } flipNormals false; mergeFaces false; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application icoFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 1000; deltaT 0.1; writeControl timeStep; writeInterval 1; purgeWrite 0; writeFormat ascii; writePrecision 12; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable true; // ************************************************************************* // I appreciate any remark. thanks! |
|
Tags |
axisymmetric, jet, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to plot jet half width of axisymmetric jet | pawansharma | OpenFOAM Post-Processing | 0 | May 7, 2019 04:44 |
Pulsatile axisymmetric jet in Ansys Fluent (transient) | JiDo | FLUENT | 0 | March 23, 2019 03:29 |
Modeling of TKE in axisymmetric jet | jvaquero8 | FLUENT | 2 | November 30, 2017 12:01 |
Axisymmetric water jet 2D | cho99 | OpenFOAM Running, Solving & CFD | 1 | August 30, 2017 06:39 |
Simulation of Axisymmetric jet flow in openfoam | gunvirs | OpenFOAM | 0 | July 4, 2016 05:08 |