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

implementing time varying boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2022, 09:38
Smile implementing time varying boundary condition
  #1
Member
 
Eric Segalerba
Join Date: Dec 2021
Location: Italy
Posts: 31
Rep Power: 4
EricS is on a distinguished road
Hi Foamers,


I'm trying to implement a time-varying boundary condition and, so far, I tried it using codeStream. After some initial issues, I figured out how to properly write the code but, it seems to me, that codeStream compiles the new boundary condition before starting the cycle and then it uses it for every following timestep.
I'm wondering if there's a way to "tell" codeStream to recompile that boundary condition at each time-step!


P.S. I would prefer to avoid external tools as swak4foam for two simple reasons: first, I tried but I wasn't able to compile it for the linux release I'm working on (OpenSUSE), then, I should run those simulation on an external computer where I'm not the root user and I'm not allowed to compile external things...


Thank you in advance!
EricS is offline   Reply With Quote

Old   May 4, 2022, 20:03
Default
  #2
Member
 
Al Csc
Join Date: Jul 2018
Posts: 31
Rep Power: 8
al.csc is on a distinguished road
What about a simple table?
fixedValue boundary condition with a time dependent value
al.csc is offline   Reply With Quote

Old   May 5, 2022, 04:43
Default
  #3
Member
 
Eric Segalerba
Join Date: Dec 2021
Location: Italy
Posts: 31
Rep Power: 4
EricS is on a distinguished road
Sadly my boundary condition is related to the solution of the previous step, so I can't tell the values that I need to impose a priori... In a few words: I impose a mass flow, then I calculate the pressure difference between two points and I use this resulting value to correct the massflow for the next iteration!
EricS is offline   Reply With Quote

Reply

Tags
codestream, time-varying bc


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
Question about different kinds of Boundaries and Boundary Conditions granzer Main CFD Forum 17 April 12, 2022 18:27
Time Varying OutFlow Boundary Condition nsaeidi Fluent UDF and Scheme Programming 0 May 30, 2016 15:40
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58


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