Menu

How to get critcal point values and accentric factor from the chemsep database

Charan
2018-06-04
2018-06-22
  • Charan

    Charan - 2018-06-04

    Hello all ,
    I am using ironpython in the custom unit operation to desing a simple abosrption column . I know that one already exists in dwsim. I am just designing this for learning purposes.
    I have serached everywhere and cannot find a way to acess these values from the chemsep database.I need these values to calculate the k-values using the Wilson correlation .
    I usually acess all other basic properties using the GetProp function.
    I apologise for asking such a basic doubt but im quite helpless here.

    Thank you.

     
  • Daniel Medeiros

    Daniel Medeiros - 2018-06-04

    Hi Charan,

    You can get compound information from a material stream added to the flowsheet, i.e.

    air_stream = Flowsheet.GetFlowsheetSimulationObject('MSTR-000')
    
    air_compound = air_stream.GetPhase('Mixture').Compounds['Air']
    
    crit_temp = air_compound.ConstantProperties.Critical_Temperature
    
    print crit_temp
    

    For the other properties, see: http://dwsim.inforside.com.br/api_help5/html/T_DWSIM_Thermodynamics_BaseClasses_ConstantProperties.htm

    Regards
    Daniel

     

    Last edit: Daniel Medeiros 2018-06-04
  • Charan

    Charan - 2018-06-04

    Daniel ,
    Thank you.

     
  • Charan

    Charan - 2018-06-22

    I used the following code to get the Bubble temperature

    feed_in = ims1
    temp_out =  feed_in.GetPhase('Liquid').Properties.bubbleTemperature
    Flowsheet.WriteMessage(str(temp_out))
    

    I always get a None as the output. Can u please tell me where am i making a mistake ?

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.