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

How the flow direction is determined in fvOptions?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2021, 02:40
Red face How the flow direction is determined in fvOptions?
  #1
New Member
 
Erol Bicer
Join Date: Apr 2021
Location: Seoul
Posts: 4
Rep Power: 5
nucerl is on a distinguished road
Hello, everyone!

I am working with twoPhaseEulerFoam solver to simulate air injection to a large tank. Here, the air inlet velocity is quite high (Jg~150 m/s) and the nozzle diameter is about 5 mm. In the tutorials (tutorials/multiphase/twoPhaseEulerFoam/laminar/injection/constant/fvOptions) they used fvOptions to replicate the injector which is given below. There are a few things I don't understand here:
  1. How do I set a fixed inlet velocity (or mass flow rate) here?
    - I thought I would use the momentumSource1 but I am not sure if I should use the massSource1 instead? In this example, the inlet velocity is not defined in the U.air in the "0" folder but instead, it's given here as a boundary source.
  2. How can I plot the inlet velocity?
    - Would using the plot over line be enough to prove the inlet velocity if I center the beginning of the line to the center defined in the points?
  3. How can we change the direction of the flow here?
    - I thought I could change the direction of the flow by changing the sign in the vector component in vectorSemiImplicitSource but changing it did not affect the orientation at all. The flow always goes in a positive Y direction which is opposite to gravity.

I have just started to learn OpenFOAM this week and I am coming from a system code background as a user so please go easy on me

Thank you for your help in advance,

Erol.


Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

injector1
{
    timeStart       0.1;
    duration        5;
    selectionMode   points;
    points
    (
        (0.075 0.2 0.05)
    );
}

options
{
    massSource1
    {
        type            scalarSemiImplicitSource;

        $injector1;

        volumeMode      absolute;
        injectionRateSuSp
        {
            thermo:rho.air     (1e-3 0); // kg/s
        }
    }

    momentumSource1
    {
        type            vectorSemiImplicitSource;

        $injector1;

        volumeMode      absolute;
        injectionRateSuSp
        {
            U.air           ((0 -1e-2 0) 0); // kg*m/s^2
        }
    }

    energySource1
    {
        type            scalarSemiImplicitSource;

        $injector1;

        volumeMode      absolute;
        injectionRateSuSp
        {
            e.air      (500 0); // kg*m^2/s^3
        }
    }
}


// ************************************************************************* //
nucerl is offline   Reply With Quote

Reply

Tags
direction, fvoptions, multiphase, twophaseeulerfoam


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
Assigning Direction to flow akki_malik SU2 8 December 12, 2019 06:56
Flow being directed to one direction rahulksoni OpenFOAM Running, Solving & CFD 0 March 5, 2019 01:13
How to change flow direction during a transient analysis? kaufparkangucker Fluent UDF and Scheme Programming 9 June 22, 2017 20:29
Using fvOptions in order to simulate oscillatory flow vahidet OpenFOAM Running, Solving & CFD 5 July 13, 2015 03:06
Can 'shock waves' occur in viscous fluid flows? diaw Main CFD Forum 104 February 16, 2006 05:44


All times are GMT -4. The time now is 22:13.