|
[Sponsors] |
Interfoam - Real world Geometry with constant inlet flow |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 10, 2016, 15:54 |
Interfoam - Real world Geometry with constant inlet flow
|
#1 |
New Member
Bradley
Join Date: Feb 2016
Posts: 7
Rep Power: 10 |
Hello.
I am trying to modify a case of Interfoam to include real world geometry with a constant inlet flow rate. For a basis, I started with this case: https://www.youtube.com/watch?v=1zQbU-E4k1U I am able to replicate the box to cell case for any configuration using a step file and Salome. However, I can not figure out how to set a constant inlet flow instead of box to cell. Here is an example of the constant flow I'm trying to create: https://www.youtube.com/watch?v=0K2QBjFS5VM In addition to alpha.water, I would like for the simulation to show the velocity of the fluid. Please let me know if I have left any relevant information out. This is my first time using the CFD forums. My relevant code is below /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object setFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // defaultFieldValues ( volScalarFieldValue alpha.water 0 ); regions ( boxToCell { box (0 -0.12 0.195) (0.05 0.03 0.23); fieldValues ( volScalarFieldValue alpha.water 1 ); } ); __________________________________________________ ____________________ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "0"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { wall { type fixedValue; value uniform (0 0 0); } inlet { type pressureInletOutletVelocity; value uniform (0 0 0); } outlet { type pressureInletOutletVelocity; value uniform (0 0 0); } __________________________________________________ ___________________ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { wall { type zeroGradient; } outlet { type inletOutlet; inletValue uniform 0; value uniform 0; } inlet { type inletOutlet; inletValue uniform 0; value uniform 0; } } __________________________________________________ _____________________ |
|
Tags |
constant, flow, interfoam, velocity |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
interFoam vs. simpleFoam channel flow comparison | DanM | OpenFOAM Running, Solving & CFD | 12 | January 31, 2020 16:26 |
Multiphase Flow BC-Mass Flow inlet not available? | yimingchen.ok@gmail.com | Siemens | 1 | July 18, 2014 07:08 |
Boundary condition temerature profile | ahvz | Fluent UDF and Scheme Programming | 6 | February 16, 2014 11:24 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |
enum | MASOUD | Fluent UDF and Scheme Programming | 0 | June 5, 2010 01:49 |