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

Integer part in StarCD macro

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2012, 05:16
Default Integer part in StarCD macro
  #1
Member
 
Join Date: Oct 2011
Location: Thessaloniki, Greece
Posts: 75
Rep Power: 14
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: 189
Rep Power: 17
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: 75
Rep Power: 14
crevoise is on a distinguished road
Thank you a lot!
crevoise is offline   Reply With Quote

Reply

Tags
integer, postprocessing, starcd


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
[swak4Foam] integer part , groovyBC T.D. OpenFOAM Community Contributions 8 May 26, 2017 13:09
[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 Siemens 1 April 9, 2007 12:37
how to read a gridpro 2d file into starcd shell prc Siemens 3 December 21, 2006 18:59


All times are GMT -4. The time now is 14:59.