Jump to content



Featured Articles

Check out the latest featured articles.

File Library

Check out the latest downloads available in the File Library.

New Article

Product Viscosity vs. Shear

Featured File

Vertical Tank Selection

New Blog Entry

Low Flow in Pipes- posted in Ankur's blog

Prode Functions Putz(Integer Stream, Integer Pos., Double Zi)

prode

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic
Share this topic:
| More

#1 fateton

fateton

    Brand New Member

  • Members
  • 9 posts

Posted 05 April 2017 - 08:59 AM

Hello

 

I am preparing one application in vba to introduce components in excel format and pass these to prode applications.

 

For  this  I use  PutZ( integer stream, interger pos,dobleZi) , but when I introduce molar % as doble Zi the prode editor show different quantities, Is this Doble Zi actually molar % or this is in other unit ( wheight or other)?.

 

Is it possible change the unit for PutZ in vba ( I know that in Prode is possible)

 

I include some scream of the process. 

 

Thanks in advance

Attached Files



#2 serra

serra

    Gold Member

  • Members
  • 310 posts

Posted 05 April 2017 - 09:59 AM   Best Answer

I have created vba applications with Prode Properties,

 

you can define a composition with putZ() (molar fractions)

for example, with Excel VBA

 

For I =1 to nrc

val=Cells(I+1,2) ' get data from cells

res = putZ(stream,I,val)

Next I

 

res = SetS(stream) ' inform Prode to update composition

 

in the same way you can define streams with the list of components, compositions etc.

i think there are examples at cheresources



#3 fateton

fateton

    Brand New Member

  • Members
  • 9 posts

Posted 05 April 2017 - 10:13 AM

Thanks a lot.

Yes my mistake was call the functions setS inside the bucle, automatically prode distribute the mol % introduded and change the value.

Thanks you




Similar Topics