CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Using UDF for inlet mass flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2019, 12:38
Default Using UDF for inlet mass flow
  #1
New Member
 
TheAnswer
Join Date: Sep 2017
Posts: 8
Rep Power: 9
Avni is on a distinguished road
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.
Avni is offline   Reply With Quote

Old   March 27, 2019, 06:47
Default
  #2
Member
 
Join Date: Jul 2013
Posts: 80
Rep Power: 13
upeksa is on a distinguished road
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.
upeksa is offline   Reply With Quote

Reply

Tags
mass flow, transform, udf define boundary


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
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


All times are GMT -4. The time now is 18:12.