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

Custom Field Functions: Data from different locations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2016, 23:21
Default Custom Field Functions: Data from different locations
  #1
New Member
 
Chris
Join Date: May 2016
Posts: 10
Rep Power: 9
pisykl is on a distinguished road
Hello,

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!

Greetings
Chris
pisykl is offline   Reply With Quote

Old   May 23, 2016, 15:04
Default
  #2
Senior Member
 
nm
Join Date: Mar 2013
Posts: 100
Rep Power: 13
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
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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
Default
  #4
New Member
 
Chris
Join Date: May 2016
Posts: 10
Rep Power: 9
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

Reply


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
Defining 'Streamwise Velocity' with Custom Field Functions atheresia ANSYS 1 February 6, 2019 10:57
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 06:51
Custom field functions sivakumar FLUENT 1 October 12, 2001 06:36
Custom Field Functions ak FLUENT 2 October 8, 2001 10:23


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