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

"if statement" Custom Field Functions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2015, 10:52
Default "if statement" Custom Field Functions
  #1
Senior Member
 
Astio Lamar
Join Date: May 2012
Location: Pipe
Posts: 186
Rep Power: 14
asal is on a distinguished road
Hello all!

I want to calculate the following expression in "Custom Field Functions" in Fluent.

(5 * sqrt (|V|) * |V| + 0.625)

I need to check if the velocity =0, then Velocity = 0.01.
Is there any possibility to do so in "Custom Field Functions"?

Thanks.
asal is offline   Reply With Quote

Old   October 11, 2015, 11:22
Default
  #2
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
I think no, but you can create an udf and store your variable in a udm.
__________________
Google is your friend and the same for the search button!
ghost82 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
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 05:49
Problem in sampling data of custom field function in ANSYS FLUENT v14 apek_great ANSYS 1 February 26, 2014 06:10
Custom field functions sivakumar FLUENT 1 October 12, 2001 07:36
Custom Field Functions ak FLUENT 2 October 8, 2001 11:23


All times are GMT -4. The time now is 19:38.