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

PimpleFoam Time Varying Ubar

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2020, 13:40
Default PimpleFoam Time Varying Ubar
  #1
New Member
 
Will M
Join Date: Oct 2020
Posts: 3
Rep Power: 6
willscottmatt is on a distinguished road
Hi all,

I am trying to increase Ubar with time so that I may have an unsteady flow. This has been confusing me for some time now.

I am using the channel395 case and have looked into using a codedSource to change Ubar, but I couldn't get that to work so if someone has some tips on this please lend a hand.

I have also tried adding a term to the UEqn, from which I had a little success because it did increase something, but that something was the pressure gradient as the line,

fvOptions.constrain(UEqn);

is making things quite difficult by cancelling out my new term by increasing the pressure gradient in the opposite direction to hit the target Ubar that is set in fvOptions.

So I thought it would be a good idea to create my own constrain class that doesn't want to ruin my hard work. It is clear to me that this is probably in fact not the most ideal way to get what I want.

If anyone could show me the best way of doing this whether it be through a codedSource in fvOptions, or adding my own time varying momentum term to UEqn that would be most appreciated.
willscottmatt is offline   Reply With Quote

Old   March 7, 2022, 02:45
Default
  #2
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17
chandra shekhar pant is on a distinguished road
Hello,

I am also trying a similar thing, have you been able to figure this out, to add sinusoidal/time varying ubar in fvoptions? If yes, then please help me, thanks in advance.
chandra shekhar pant is offline   Reply With Quote

Old   August 20, 2022, 02:44
Default
  #3
New Member
 
M. Nasr
Join Date: Jul 2020
Posts: 4
Rep Power: 6
M. Nasr is on a distinguished road
Quote:
Originally Posted by chandra shekhar pant View Post
Hello,

I am also trying a similar thing, have you been able to figure this out, to add sinusoidal/time varying ubar in fvoptions? If yes, then please help me, thanks in advance.
Hi,
Have you managed to apply sinusoidal/time varying ubar in fvoptions?
M. Nasr is offline   Reply With Quote

Old   August 20, 2022, 22:52
Default
  #4
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17
chandra shekhar pant is on a distinguished road
Hi,
Unfortunately no, I am still not been able to figure this out.
chandra shekhar pant is offline   Reply With Quote

Old   March 22, 2023, 05:43
Default
  #5
New Member
 
xu
Join Date: Mar 2022
Posts: 2
Rep Power: 0
hhu_xpc is on a distinguished road
Hi,
add sinusoidal/time varying ubar in fvoptions is finish?If yes, please help me,thanks in advance
hhu_xpc is offline   Reply With Quote

Old   March 23, 2023, 10:22
Default
  #6
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17
chandra shekhar pant is on a distinguished road
Hi, instead to directly implement ubar, I tried to do the following:
Could pressure gradient be modelled as "vectorCodedSource" in fvoptions at inlet
chandra shekhar pant is offline   Reply With Quote

Reply

Tags
channel395, classes, fvoptions, meanvelocityforce, ubar


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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 6, 2023 00:48
[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 15:52.