CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

User Defined Functions in Star CCM+

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fluid23

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2018, 06:35
Default User Defined Functions in Star CCM+
  #1
New Member
 
Khilz
Join Date: Jul 2018
Posts: 7
Rep Power: 8
khal is on a distinguished road
Hello,

I am very new to the CFD simulation world and my task is to simulate in-tube steam condensation in horizontal tubes using star ccm+.

For the geometry and flow conditions, I am interested in, I found a paper that simulated the flow with ANSYS FLUENT, and User Defined Functions (UDF)- written in C language- have been used to enhance the standard features of the code.

My questions are: can I define UDFs and apply it to the star cmm+ solver? if it is possible, how can I do so? and in general, should I expect similar results between the FLUENT and Star ccm+?

Sorry if my questions are basic, but I looked in the Star ccm+ user guide but could not spot anything related to the UDFs. Maybe I am not using the correct Keywords (?).

Thank you

Last edited by khal; August 4, 2018 at 05:10.
khal is offline   Reply With Quote

Old   August 3, 2018, 16:30
Default
  #2
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18
fluid23 is on a distinguished road
You have a few options depending on the complexity of what you are trying to do. The most basic is under Tools > Field Function. If you right-click you can create a new user-defined function that can use an calculated field variable (p,T,rho,U, etc...), reports (force, flowrate, volume average values, etc...) and some basic logic (if/else, and/or, </>, etc..). The syntax isn't very straight forward so you will have to do some digging to figure our how to define the function you are after.

The other option is to use user-code which takes a compined code (c, c++, fortran) and executes whatever script you need. If the original C code is available and you know how to compile it, that may be the way to go but I suspect that there will be some serious compatibility issues between FLUENT/star-ccm+.
khal likes this.
fluid23 is offline   Reply With Quote

Old   August 4, 2018, 05:13
Default
  #3
New Member
 
Khilz
Join Date: Jul 2018
Posts: 7
Rep Power: 8
khal is on a distinguished road
Thank you. It is clear for me now.
Regards.
khal is offline   Reply With Quote

Reply

Tags
user defined functions


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
User defined field functions pradhanks STAR-CCM+ 1 March 4, 2014 14:13
Transient User Defined Function in CFX Niru CFX 0 November 12, 2013 18:07
Problem In Star CCM Plus ramarya STAR-CCM+ 1 July 10, 2011 06:59
User Defined Scalars - Returning Values Carlos V. FLUENT 0 April 19, 2006 19:18
CFX 5.5 Roued CFX 1 October 2, 2001 17:49


All times are GMT -4. The time now is 15:16.