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

Star CCM+ Exponentials Syntax??

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

Like Tree3Likes
  • 1 Post By RobH
  • 1 Post By Pauli
  • 1 Post By Arthur

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2011, 12:43
Default Star CCM+ Exponentials Syntax??
  #1
New Member
 
Rob
Join Date: Nov 2011
Posts: 2
Rep Power: 0
RobH is on a distinguished road
I trying to create my own viscosity field function. The definition is to be set as k*$StrainRate^n. k and n are known constants. My problem is, what is the correct syntax in Star CCM+ for the exponent. Start CCM+ does not seem to recognise '^' and I can't find the right operator else where.

Thanks for your help (I'm new at CFD)
sabrina likes this.
RobH is offline   Reply With Quote

Old   November 9, 2011, 13:32
Default
  #2
Senior Member
 
Pauli
Join Date: Mar 2009
Posts: 189
Rep Power: 17
Pauli is on a distinguished road
pow($x,$y) -x raised to the power of y
sabrina likes this.
Pauli is offline   Reply With Quote

Old   November 10, 2011, 03:01
Default
  #3
Member
 
Join Date: Feb 2011
Location: DE-PB
Posts: 56
Rep Power: 15
willimanili is on a distinguished road
In your case the fieldfunction should be k*pow($StrainRate,n)
willimanili is offline   Reply With Quote

Old   November 10, 2011, 07:06
Default
  #4
New Member
 
Rob
Join Date: Nov 2011
Posts: 2
Rep Power: 0
RobH is on a distinguished road
Thanks for your help
RobH is offline   Reply With Quote

Old   January 29, 2015, 08:22
Unhappy
  #5
New Member
 
sabrina bina
Join Date: Jan 2015
Location: Algeria
Posts: 10
Rep Power: 11
sabrina is on a distinguished road
Quote:
Originally Posted by Pauli View Post
pow($x,$y) -x raised to the power of y
please and here

$AbsoluteTotalPressure*1.2*pow($MachNumber,2)*((1. 2*pow($MachNumber,2))/((2.4*pow($MachNumber,2))-0.166666667))^2.5

it's a long formula, and I cant find the errors

for power is always used "pow"? and "^"?
sabrina is offline   Reply With Quote

Old   February 5, 2015, 06:43
Default
  #6
New Member
 
Joao Arthur
Join Date: Mar 2009
Posts: 4
Rep Power: 17
Arthur is on a distinguished road
Quote:
Originally Posted by sabrina View Post
please and here

$AbsoluteTotalPressure*1.2*pow($MachNumber,2)*((1. 2*pow($MachNumber,2))/((2.4*pow($MachNumber,2))-0.166666667))^2.5

it's a long formula, and I cant find the errors

for power is always used "pow"? and "^"?
Sabrina the operator "^" is not used in star-ccm the error in your formula is exactly this one at the end.

Take a look at the user guide in Using Tools > Using Field Functions > Field Function Programming Reference > Miscellaneous Functions for reference...
sabrina likes this.
Arthur is offline   Reply With Quote

Old   February 5, 2015, 07:53
Default
  #7
New Member
 
sabrina bina
Join Date: Jan 2015
Location: Algeria
Posts: 10
Rep Power: 11
sabrina is on a distinguished road
Quote:
Originally Posted by Arthur View Post
Sabrina the operator "^" is not used in star-ccm the error in your formula is exactly this one at the end.

Take a look at the user guide in Using Tools > Using Field Functions > Field Function Programming Reference > Miscellaneous Functions for reference...
thank you Arthur, I have corrected, can you tell me if you have idea, in star CCM+, we can do a new field function with derivative like (dT/dy) or (dV/dy) ?
sabrina is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
error in star ccm maurizio Siemens 3 October 16, 2007 06:17
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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