|
[Sponsors] |
Time varying boundary conditions, function of a measurement |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 13, 2014, 07:45 |
Time varying boundary conditions, function of a measurement
|
#1 |
Member
Olie
Join Date: Oct 2013
Posts: 51
Rep Power: 13 |
Hi,
I want to implement a time varying boundary condition which simply varies the velocity magnitude as a function of some measurement - i.e. closed-loop control. So whilst running a solver (PIMPLE in my case) I want a probe to save a value (for example a pressure measurement) at each time step, then the ability to perform some mathematical operation on this value, determining the velocity magnitude of my particular boundary for the next time step, then to set this velocity for the next time step. Can anyone help me out with this? Thanks a lot, Olie |
|
May 13, 2014, 10:44 |
|
#2 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
hello,
GroovyBC can do this, check the wiki. Regards, Olivier |
|
May 15, 2014, 07:00 |
|
#3 |
Member
Olie
Join Date: Oct 2013
Posts: 51
Rep Power: 13 |
||
June 17, 2014, 06:53 |
Implementing with groovyBC
|
#4 |
Member
Olie
Join Date: Oct 2013
Posts: 51
Rep Power: 13 |
Hi,
I've now got (I think) swak4FOAM properly installed and wish to have a go with this. If I have a boundary (let's call it actuator) whose velocity I want to set using groovyBC based on an expression involving the pressure recorded by a probe (let's call it probe1), how can I do this? My thinking is in the file case/0/U change the actuator boundary field to something like: Code:
actuator { type groovyBC; valueExpression "0.5*(probeReading)"; // Some function of the probe recording variables "probeReading *** NOT SURE HOW TO DO THIS? *** value uniform (0 0 0); } Can anyone help me with this? Thanks a lot in advance, Olie |
|
May 16, 2019, 16:20 |
|
#5 | |
New Member
Hao Li
Join Date: May 2017
Posts: 7
Rep Power: 9 |
Quote:
Hi, have you finishe it? I am doing the same simulations. |
||
Tags |
closed-loop, variable bc |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 05:13 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |