|
[Sponsors] |
August 2, 2018, 06:35 |
User Defined Functions in Star CCM+
|
#1 |
New Member
Khilz
Join Date: Jul 2018
Posts: 7
Rep Power: 8 |
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. |
|
August 3, 2018, 16:30 |
|
#2 |
Senior Member
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18 |
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+. |
|
August 4, 2018, 05:13 |
|
#3 |
New Member
Khilz
Join Date: Jul 2018
Posts: 7
Rep Power: 8 |
Thank you. It is clear for me now.
Regards. |
|
Tags |
user defined functions |
|
|
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 |