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

User Defined function for scalar gradient caculation with Star ccm+ V4

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By willimanili

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2010, 13:04
Default User Defined function for scalar gradient caculation with Star ccm+ V4
  #1
New Member
 
NVilius
Join Date: Jul 2010
Posts: 3
Rep Power: 16
coolio is on a distinguished road
Hi all!

I m modeling flow and heat transfer in a heat exchanger model. After convergence of a simulation (or even during the simulation), i would like to caculate the temperature gradient at any point of the computational domain. I have tried to have a look at the User guide for the implementation of user Fortran code into Star CCM+ but the examples found concern only very simple user profile codes.

Could anyone help me please?

Coolio

Last edited by coolio; July 26, 2010 at 04:16.
coolio is offline   Reply With Quote

Old   July 27, 2010, 13:21
Default
  #2
New Member
 
NVilius
Join Date: Jul 2010
Posts: 3
Rep Power: 16
coolio is on a distinguished road
Sorry!

I found a solution! I was using an old version of the software! After updating to the new release (5.04), i found many derivative operators!

Regards!
coolio is offline   Reply With Quote

Old   December 21, 2011, 11:36
Smile how do you realize it?
  #3
New Member
 
Can Huang
Join Date: Oct 2010
Posts: 8
Rep Power: 16
onlyacan is on a distinguished road
can you tell me how did you adapt the derivative operator in the STAR-CCM+?
thank you very much, my email is 54acan@gmail.com
onlyacan is offline   Reply With Quote

Old   December 21, 2011, 18:13
Default
  #4
Member
 
Join Date: Feb 2011
Location: DE-PB
Posts: 56
Rep Power: 15
willimanili is on a distinguished road
The field function "grad($Temperature)" provides you the gradient vector of temperature for your given coordinate system.
If you are just interested in the magnitude value of the gradient vector just use "mag(grad($temperature))".
lisa_china likes this.

Last edited by willimanili; December 22, 2011 at 03:09. Reason: changed abs to mag
willimanili is offline   Reply With Quote

Old   August 11, 2023, 06:38
Default
  #5
New Member
 
Krishna Thombare
Join Date: Jul 2023
Posts: 4
Rep Power: 3
Krishna Thombare is on a distinguished road
I want to take dot product of gradient operator and unit normal vectopr for this i need to take just gradient operator so is it like "grad" only or $$grad please help?

thanks
krishna.
Krishna Thombare is offline   Reply With Quote

Reply

Tags
fortran, scalar gradient, user code


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
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
solving passive scalar by user function in AVLFIRE huyp Main CFD Forum 0 September 4, 2008 11:21
Gradient of a User defined Variable Ramadas CFX 2 August 21, 2007 10:19
User defined function for density gradient ben akih CFX 3 October 10, 2006 22:47
user defined function cfduser CFX 0 April 29, 2006 11:58


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