CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CD-adapco

Integer part in StarCD macro

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 29, 2012, 05:16
Default Integer part in StarCD macro
  #1
Member
 
Join Date: Oct 2011
Location: Thessaloniki, Greece
Posts: 71
Rep Power: 5
crevoise is on a distinguished road
Hi,
Doing post-processing, I need to get integer part of a number, but I have no clue how to get that in StarCD
Any ideas how to get the integer part of a decimal number?
example: integer part of "2.356" to be "2", and "5.897" to be "5"

When you *set a parameter, it shows the real and integer part. How to *set a new parameter with the integer part of the previous one?

thanks for any help
crevoise is offline   Reply With Quote

Old   June 29, 2012, 10:21
Default
  #2
Senior Member
 
Pauli
Join Date: Mar 2009
Posts: 181
Rep Power: 8
Pauli is on a distinguished road
*calc with the int function.
Pauli is offline   Reply With Quote

Old   July 2, 2012, 03:06
Default
  #3
Member
 
Join Date: Oct 2011
Location: Thessaloniki, Greece
Posts: 71
Rep Power: 5
crevoise is on a distinguished road
Thank you a lot!
crevoise is offline   Reply With Quote

Reply

Tags
integer, postprocessing, starcd

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
integer part , groovyBC T.D. OpenFOAM 7 February 28, 2014 11:41
[ICEM] create Part wangy1767 ANSYS Meshing & Geometry 10 June 30, 2012 18:46
Macro Trouble -Winows Explorer Crashes with Macro Martin Castillo FLUENT 1 July 25, 2007 04:18
Macro problem cfddummy CD-adapco 1 April 9, 2007 12:37
how to read a gridpro 2d file into starcd shell prc CD-adapco 3 December 21, 2006 19:59


All times are GMT -4. The time now is 17:56.