HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

Fortran subroutine help!

2022-09-27View Original

Thread Content

C RETRIVE MOLECULAR WEIGHT OF EACH COMPONENT (KG/KMOL) LMW = DMS_IFCMNC('MW') DO I = 1,NCOMP_NCC LMWI = LMW+I XMW(I) = B(LMWI) END DO This line of code is to obtain the molar mass of all components, DMS_The explanation of IFCMN is to determine the offset for component data areas in the labeled common DMS_PLEX, from the public domain DMS_PLEX gets MW (molar mass) ; NCOMP_NCC is the number of all components, and B is the real PLEX storage space. But I don’t understand how this cycle retrieves the molecular weight of each component.
Reply #22022-09-27
RETRIEVE TEMPERATURE(K), PRESSURE(ATM), MOLE FLOWS OF COMPONENTS (KMOL/S). T = SOUT(IDXSUB(1)-1+NCOMP_NCC+2) PT = RPROPS_UPRES / PAMBI #IDXSUB 1=MIXED 2=CISOLID 3=NC NO2 = SOUT(IDXSUB(1)-1+1) NCO = SOUT(IDXSUB(1)-1+2) NH2 = SOUT(IDXSUB(1)-1+3) NCO2 = SOUT(IDXSUB(1)-1+4) NH2O = SOUT(IDXSUB(1)-1+5) NCH4 = SOUT(IDXSUB(1)-1+6) NN2 = SOUT(IDXSUB(1)-1+7) NH2S = SOUT(IDXSUB(1)-1+8) NC6H6 = SOUT(IDXSUB(1)-1+9) NCARB = SOUT(IDXSUB(2)-1+10) NSULF = SOUT(IDXSUB(2)-1+11) NTOTG = NO2+NCO+NH2+NCO2+NH2O+NCH4+NN2+NH2S+NC6H6 #SOUT The position of the logistics vector subflow in the flow vector NCOMP_NCC+2 represents the temperature SOUT export logistics array NCOMP_NCC (number of conventional ingredients) #IDXSUB 1=MIXED 2=CISOLID 3=NC ? ? ? ? ? SOUT(IDXSUB(1)-1 What does this string of characters mean? Please help me understand
Reply #32022-09-28
DMS_The IFCMNC function should get the first address of 'MW', then the address + 1, and then get the content through the B function. In addition, the original poster DMS_Where is the explanation of IFCMNC? Can you share the information?
Reply #42022-09-28
The IDXSUB() function should return the address, IDXSUB(1) returns the first address of the MIXED logistics property, IDXSUB(2) returns the first address of the CISOLID logistics property, and so on. After having the first address, the SOUT function can obtain the relevant physical properties (temperature and pressure composition, etc.) one by one based on the address.
Reply #52022-10-08
Sorry, I just saw your valuable reply. Yes, my email is vvddch@163.com
Reply #62022-10-10
15925614309@163.com , you can send it to my email address, thank you!
Reply #72022-10-10
IDXSUB() is a calling function, but the code given by the poster is a bit strange. It uses #IDXSUB 1 = MIXED 2 = CIOLID 3 = NC. After looking at its component list, it should be that it defines solid particulate carbon and sulfur in the gas phase exhaust gas. Is this related to the number of components?
Reply #82022-10-13
Please give me a lesson, sir* Tutorial or guide for aspen fortran subroutines
Reply #92022-10-18
RATES(NCOMP_NCC * 2-1) = -RCARO2 * 1.0D0 - RCARH2O * 1.0D0 + RCARCO2 * 1.0D0-RCARH2 * 1.0D0 RATES(NCOMP_NCC * 2) = 0.0D0 #It is currently known that these two codes mean to obtain the reaction rate of the components REATS (x). The content of the brackets is related to the order of the components defined by aspen, NCOMP_NCC represents the number of conventional components, then NCOMP_NCC * 2-1 Why does it represent the first component in the CISOLID sub-stream?

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.