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

time-varying flowRateInletVelocity bc for OF5

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By alexya

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2018, 07:36
Question time-varying flowRateInletVelocity bc for OF5
  #1
New Member
 
Join Date: Jan 2018
Posts: 4
Rep Power: 8
alexya is on a distinguished road
Hi, guys:

I'm new to openfoam. I have implemented a steady state flowRateInletVelocity in OF5 and it works:

Inlet
{
type flowRateInletVelocity;
volumetricFlowRate 3.0;
value uniform (0 0 0);
}

But, when I try to have a time-varying polynomial flowrate:
Inlet
{
type flowRateInletVelocity;
volumetricFlowRate polynomial ((3.0 0) (0.2 1)); // = 3*t^0 + 0.2*t^1
value uniform (0 0 0);
}

The simulation blows up. Even if I test polynomial ((3.0 0) (0 0)), which should be the same as constant flow rate 3.0, the simulation blows up.


Is there anything wrong with the syntax of using polynomial for flowRateInletVelocity? Or the polynomial variable is no longer the time "t" but something else in OF5?


Alex
massive_turbulence likes this.
alexya is offline   Reply With Quote

Old   February 7, 2018, 17:02
Default
  #2
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 96
Rep Power: 14
arvindpj is on a distinguished road
What are you trying to achieve?

Are you trying to run simpleFOAM (steady) with ramping flowrate with increasing iteration

or

run a pimpleFOAM with pseudo steady with ramping flowrate with time>

Cheers,
Jay :-)
arvindpj is offline   Reply With Quote

Old   February 7, 2018, 19:50
Default
  #3
New Member
 
Join Date: Jan 2018
Posts: 4
Rep Power: 8
alexya is on a distinguished road
Hi, Jay:

I am doing a time varying flowrate by running pimpleFOAM. The time varying flowrate is prescribed by a polynomial, like Q=a*t^0+b*t^1+c*t^2+d*t^3+.............

It should be straight forward syntax as it is used in uniformFixedValue boundary condition. I'm just wondering is there any change with the syntax for "flowRateInletVelocity" in latest OF5? Or what is the right way to do it in OF5?

Thank you!
Alex
alexya is offline   Reply With Quote

Old   February 7, 2018, 20:01
Default
  #4
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 96
Rep Power: 14
arvindpj is on a distinguished road
I thinl you are missing the uniformValue keyword before the polynomial

volumetricFlowRate uniformValue polynomial
(
(3.0 0)
(0.2 1)
); // = 3*t^0 + 0.2*t^1polynomial
arvindpj is offline   Reply With Quote

Old   February 11, 2018, 13:55
Default
  #5
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Well, your simulation blows up because as t-->infinity, Q-->infinity
Santiago is offline   Reply With Quote

Reply


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 41 August 23, 2023 02:48
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 09:34


All times are GMT -4. The time now is 00:07.