CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Custom Field Functions: Data from different locations

Register Blogs Members List Search Today's Posts Mark Forums Read

Sponsored Links

LinkBack Thread Tools Display Modes
Old   May 22, 2016, 23:21
Default Custom Field Functions: Data from different locations
New Member
Join Date: May 2016
Posts: 10
Rep Power: 3
pisykl is on a distinguished road
Sponsored Links

I'm a greenhorn in CFD and so my question regarding Custom Field Functions may be really basic:

I simulate a flow around a blade of a turbomachine. Now I would like to calculate the loss coefficient zeta at a measurement line 50 mm behind the blade with zeta = delta(ptot)/((rho/2)/c1^2). I tried to do this with a custom field function, but for the calculation I need data from two different locations: The total pressure and the velocity from the inlet and the total pressure at the measurement line. So far I entered the data from the inlet manually. But is there a way so integrate these data automatically? Thanks for your help!

pisykl is offline   Reply With Quote
Sponsored Links

Old   May 23, 2016, 15:04
Join Date: Mar 2013
Posts: 79
Rep Power: 6
nvarma is on a distinguished road
As far as I know, CFFs are field functions, ie. they are general functions for the entire domain and has a value at every point.

You cannot take input values from a particular boundary for a CFF. CFF is a "function".

You might want to look into macros.

Or better, if you have CFX you can use the expressions there to calculate this accurately.
nvarma is offline   Reply With Quote

Old   May 24, 2016, 20:12
Senior Member
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 1,854
Rep Power: 26
LuckyTran will become famous soon enoughLuckyTran will become famous soon enough
Custom field functions are field functions.

What you are trying to do is a simple expression. It's awkward to do this in Fluent, much easier to do in CFD post, excel, matlab, by hand, etc.

Although, you can do the integration in Fluent using surface monitors. But to evaluate the complete expression is a little weird. You can do it with Fluent scheme commands, but what is the point? What would you do with the resulting value? Is automation in Fluent really needed?
LuckyTran is offline   Reply With Quote

Old   May 25, 2016, 06:28
New Member
Join Date: May 2016
Posts: 10
Rep Power: 3
pisykl is on a distinguished road
Thanks! I'll use matlab for this this is the most comfortable way for me. I can export the data files I need (total pressure, velocity etc.) and write a script in Matlab.
pisykl is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Defining 'Streamwise Velocity' with Custom Field Functions atheresia ANSYS 0 February 16, 2014 13:03
Access raw field data (scalars, vectors) on mesh haakon OpenFOAM Programming & Development 3 September 25, 2012 10:01
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
Custom field functions sivakumar FLUENT 1 October 12, 2001 06:36
Custom Field Functions ak FLUENT 2 October 8, 2001 10:23

Sponsored Links

All times are GMT -4. The time now is 05:51.