CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Interfoam - Real world Geometry with constant inlet flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2016, 14:54
Default Interfoam - Real world Geometry with constant inlet flow
  #1
New Member
 
Bradley
Join Date: Feb 2016
Posts: 7
Rep Power: 10
bdh1103 is on a distinguished road
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;
}


}

__________________________________________________ _____________________


bdh1103 is offline   Reply With Quote

Reply

Tags
constant, flow, interfoam, velocity


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 15:26
Multiphase Flow BC-Mass Flow inlet not available? yimingchen.ok@gmail.com Siemens 1 July 18, 2014 06:08
Boundary condition temerature profile ahvz Fluent UDF and Scheme Programming 6 February 16, 2014 10:24
error message cuteapathy CFX 14 March 20, 2012 06:45
enum MASOUD Fluent UDF and Scheme Programming 0 June 5, 2010 00:49


All times are GMT -4. The time now is 15:53.