|
[Sponsors] |
March 26, 2019, 12:38 |
Using UDF for inlet mass flow
|
#1 |
New Member
TheAnswer
Join Date: Sep 2017
Posts: 8
Rep Power: 9 |
Hi guys, how can I write a UDF for an inlet mass flow boundary condition using another mass flow outlet condition.
Simultaneously , I want to calculate the mass flow from the 1st boundary condition and transfer it to the 2nd boundary condition I set. |
|
March 27, 2019, 06:47 |
|
#2 |
Member
Join Date: Jul 2013
Posts: 80
Rep Power: 13 |
You can use both scheme and UDF.
For velocity inlet, for example, you can write: (rpsetvar 'v_inlet (pick-a-real "/report/surface-integrals/mass-weighted-avg inlet () velocity-magnitude no")) where "inlet" is the name of your boundary condition, and v_inlet the name of your scheme variable. and in your UDF, use: real your_variable = RP_Get_Real("v_inlet") Best regards. |
|
Tags |
mass flow, transform, udf define boundary |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressure Outlet Targeted Mass Flow Rate | LuckyTran | FLUENT | 1 | November 23, 2016 11:40 |
Surface Integrals of Species Mass Flow to Wall Incorrect | koad | FLUENT | 4 | January 12, 2016 17:38 |
UDF mass flow rate | Juan | FLUENT | 2 | December 22, 2007 10:29 |
How to define mass flow rate using UDF? | SAMUEL | FLUENT | 3 | December 25, 2004 01:36 |
How to define mass flow rate using UDF? | SAMUEL | FLUENT | 0 | December 16, 2004 03:55 |