CAPE-OPEN Forum Index
RegisterSearchFAQMemberlistUsergroupsfChatLog in
Reply to topic Page 1 of 1
Get Molecular Weight Prop
Author Message
Reply with quote
Post Get Molecular Weight Prop 
Hi, please, I'm having trouble with getting the molecular weight property.
I have this lines (i am using the Mose Toolkit):

CAPEOPEN100.ICapeThermoMaterialObject In = Entrada.ConnectedObject;
flujoBase = (In.GetProp("flow", "Overall", null, null, "mass") as double[]);
presion = (In.GetProp("pressure", "Overall", null, null, null) as double[]);
temperatura = (In.GetProp("temperature", "Overall", null, null, null) as double[]);
pesoMolecular = (In.GetProp("molecuarWeight", "Overall", null, null, null) as double[]);

I am ok with the flow, pressure and temperature, but with the MW I am getting zero values.

Thank for your help.

Cesar.

View user's profile Send private message Send e-mail
Reply with quote
Post  
Hi,

May be the keyword used is not correct:

"molecuLarWeight" instead of "molecuarWeight"

pesoMolecular = (In.GetProp("molecuLarWeight", "Overall", null, null, null) as double[]);

Best regards.

Alain

View user's profile Send private message
Reply with quote
Post  
I would want to give more precisions.

The GetProp call, as in this case, allows to obtain the molecular weight related to the "overall" phase.
Even if the keyword is correct, the molecular weight, in this case, can be only available if it was calculated before the GetProp call.

If you want to obtain the molecular weights for each compound you must use the GetComponentConstant method.

Regards.

View user's profile Send private message
Reply with quote
Post  
Thank you very much Alain.
I'm going to make the correction and test again. Your last observation is helpful for us.

Cesar.

View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum