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

Time-varying massFlowRate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2022, 10:42
Question Time-varying massFlowRate
  #1
New Member
 
Chris
Join Date: Jan 2022
Posts: 23
Rep Power: 4
Chris T is on a distinguished road
Hi all,

I'm trying to run a case with with chtMultiregionFoam. I am using the following as the b.c. for my inlet velocity.

Code:
inlet
    {
        type            flowRateInletVelocity;
        value           uniform ( 0 0 0 );
        massFlowRate    1.22;
        extrapolateProfile yes;
        rho             rho;
        rhoInlet        1800;
    }
I want to try and implement a time-varying velocity to gradually ramp up the inlet velocity. This is mainly to see if it helps to avoid the divergence I experience in the first few time-steps.

I want to implement something analogous to this

Code:
{
type
uniformFixedValue;
uniformValue table ((0 0) (10 5) (999999999 5));
}
but I'm not sure how to achieve this. I tried

Code:
inlet
    {
        type            flowRateInletVelocity;
        value           uniform ( 0 0 0 );
        massFlowRate    uniformValue table ((0 0) (10 5) (999999999 5));
        extrapolateProfile yes;
        rho             rho;
        rhoInlet        1800;
    }
but I get the error
[4] --> FOAM FATAL ERROR:
[4] Cannot find file "points" in directory "cavity/polyMesh" in times "0" down to constant


I found this older post time-varying flowRateInletVelocity bc for OF5 but it is not much helpful.


Any solution to this problem or suggestions to alternatives will be appreciated.


Best,
Chris


Edit: Btw I'm using openfoam v9.

Last edited by Chris T; June 21, 2022 at 10:37.
Chris T is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, inlet velocity, time-varying b.c.


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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 42 May 8, 2024 00:17
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 03:36
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 10:34


All times are GMT -4. The time now is 16:23.