|
[Sponsors] |
May 4, 2022, 09:38 |
implementing time varying boundary condition
|
#1 |
Member
Eric Segalerba
Join Date: Dec 2021
Location: Italy
Posts: 31
Rep Power: 5 |
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! |
|
May 4, 2022, 20:03 |
|
#2 |
Member
Al Csc
Join Date: Jul 2018
Posts: 31
Rep Power: 8 |
What about a simple table?
fixedValue boundary condition with a time dependent value |
|
May 5, 2022, 04:43 |
|
#3 |
Member
Eric Segalerba
Join Date: Dec 2021
Location: Italy
Posts: 31
Rep Power: 5 |
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!
|
|
Tags |
codestream, time-varying bc |
|
|
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 |