# Star CCM+ Exponentials Syntax??

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 November 9, 2011, 12:43 Star CCM+ Exponentials Syntax?? #1 New Member   Rob Join Date: Nov 2011 Posts: 2 Rep Power: 0 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.

 November 9, 2011, 13:32 #2 Senior Member   Pauli Join Date: Mar 2009 Posts: 190 Rep Power: 10 pow(\$x,\$y) -x raised to the power of y sabrina likes this.

 November 10, 2011, 03:01 #3 Member   Join Date: Feb 2011 Location: DE-PB Posts: 56 Rep Power: 8 In your case the fieldfunction should be k*pow(\$StrainRate,n)

 November 10, 2011, 07:06 #4 New Member   Rob Join Date: Nov 2011 Posts: 2 Rep Power: 0 Thanks for your help

January 29, 2015, 08:22
#5
New Member

sabrina bina
Join Date: Jan 2015
Location: Algeria
Posts: 10
Rep Power: 4
Quote:
 Originally Posted by Pauli pow(\$x,\$y) -x raised to the power of y

\$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 "^"?

February 5, 2015, 06:43
#6
New Member

Joao Arthur
Join Date: Mar 2009
Posts: 4
Rep Power: 10
Quote:
 Originally Posted by sabrina 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...

February 5, 2015, 07:53
#7
New Member

sabrina bina
Join Date: Jan 2015
Location: Algeria
Posts: 10
Rep Power: 4
Quote:
 Originally Posted by Arthur 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) ?

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post clo OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 33 September 26, 2012 04:04 Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38 maurizio Siemens 3 October 16, 2007 05:17 michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15 CFD user CFX 3 November 25, 2002 16:16

All times are GMT -4. The time now is 10:00.

 Contact Us - CFD Online - Privacy Statement - Top