|
[Sponsors] |
Volume flow rate boundary condition in OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 4, 2013, 15:44 |
Volume flow rate boundary condition in OpenFOAM
|
#1 |
Member
India
Join Date: Oct 2012
Posts: 84
Rep Power: 13 |
Hi,
I am new to OpenFOAM and I facing problems in setting volume flow rate boundary conditions that varies with time. I am doing a transient simulation on a single bifurcating tube. The inlet has time varying volume flow rate (velocity profile at inlet is time varying parabola). At one outlet I want the outgoing volume flow rate to be 0.52 times that of inlet and at the other outlet to be 0.48 times that of inlet at each time step. Also, velocity sometimes goes negative so it also encounters reverse flow. Earlier I ran a steady state simulation using simpleFoam and groovyBC on the same geometry setting a steady parabolic velocity(not flow rate) profile at inlet. It ran with success. But when it comes to setting volume flow rate boundary condition using groovy I am facing trouble. Do I have to use "type" as "groovyBC" or change to "type" as "groovyFlowRateInletVelocity" for setting volume flow rate at inlet and outlet patches? When I use "groovyFlowRateInletVelocity" it does not seem to recognize variable defined on remote patches like "yp@INLET=pos().y", now when I use 'yp' later to define expression on outlet it doesn't recognizes "yp" so how should I access variables from other patches in case using "groovyFlowRateInletVelocity"? Can someone please tell me a way to go about in performing this kind of transient simulation? P.S- I am not at all good with C++ so I am trying to implement BCs using groovy. Regards, Mayank |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting mass flow rate boundary condition | maysmech | OpenFOAM | 15 | July 22, 2021 11:30 |
Boundary condition problem for open channel flow | Andy | CFX | 9 | June 11, 2016 07:20 |
Problem of simulating of small droplet with radius of 2mm | liguifan | OpenFOAM Running, Solving & CFD | 5 | June 3, 2014 02:53 |
Corrected (Referred) Mass Flow Rate Boundary Condition | ermuir | CFX | 1 | November 20, 2012 17:11 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 09:56 |