CFD Online Logo CFD Online URL
Home > Forums > STAR-CCM+

Varibales for user coding

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

LinkBack Thread Tools Display Modes
Old   September 8, 2009, 10:19
Default Varibales for user coding
New Member
Join Date: Sep 2009
Posts: 2
Rep Power: 0
Tomo is on a distinguished road
Hi all,

our research group just moved from STAR-CD to STAR-CCM (v. 4.xx) and we are wondering if there are more variables available for user coding than those (~ 20) stated in the user guide?
I mean, STAR-CD had over 100 different accessible variables...

Our specific problem: how we can get the value of a "passive scalar" at a certain position (cell number) at a given time (transient simulation)??

Maybe someone in this forum has some experience with coding in STAR-CCM and wants to give me a little advice?

Thank u
Tomo is offline   Reply With Quote

Old   September 8, 2009, 19:42
Senior Member
Join Date: Mar 2009
Location: Austin, TX
Posts: 147
Rep Power: 11
kyle is on a distinguished road
User coding also has access to all field functions. I think one of the sample cases shows how to access them.

You also should consider that you may no longer need user coding. Unless your code is very complex and you need to write it in C or Fortran to keep it manageable, there is really no reason to use user coding over user field functions. This way you do not have to worry about compiling and linking your simulation to an external library, and the entire simulation is contained in one file.
kyle is offline   Reply With Quote

Old   September 9, 2009, 04:25
New Member
Join Date: Sep 2009
Posts: 2
Rep Power: 0
Tomo is on a distinguished road
Thanks kyle for your reply!

I already tried around with field functions and I agree that this approach would be much more convenient to solve my problem.

As I mentioned in the opening thread, our prob is rather simple from the mathematical point of view, therefore no user coding might be necessary.

But at the moment I'm not sure how to get even accsess to certain variables, like the concentration of a passive scalar at a certain iteration step.

I am already in contact with the cd-adapco supoport and hopfully they can enlighten me.

Operations which were possible to handle with STAR-CD 3.x should be no problem for STAR-CCM, or ??
Tomo is offline   Reply With Quote

Old   September 10, 2009, 03:49
Senior Member
Join Date: Mar 2009
Posts: 203
Rep Power: 11
Maddin is on a distinguished road
CCM sometimes don't shows all fiel functions. When you had used them in a Scene as a scalar you find them in field functions after a refresh!
Maddin 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
Coding 2d incompressible Navier Stokes Simon Main CFD Forum 15 July 20, 2012 04:24
Help with coding James Main CFD Forum 2 May 18, 2005 05:12
Coding begineer of cfd Main CFD Forum 1 July 21, 2004 05:11
Ground coding enquiry Wenqing Zhang Phoenics 2 August 12, 2002 11:56
User coding on NT w2k Philip Jones Siemens 0 November 26, 2001 04:43

All times are GMT -4. The time now is 04:36.