- Index
- » Users
- » PCModeler20
- » Profile
Posts
Posts
Hi all -
Is there a way to have a chemical reaction dependent on temperature? When I tried to set the Gibb's Free Energy to calculate with the temperature of the system, I was given this error:
“Function argument DfG=-R*(solution1.T+273.15)*log(k_eq_CO) in call to Chemical.Examples.Substances.CarbonMonoxide_gas has variability continuous which is not a parameter expression.”
How can I change this so it's a variable and not a parameter? Thanks!
Hello,
I recently downloaded OpenModelica to my MacBook with MacPorts. Everything completed successfully, but I cannot open OMEdit or OMShell. The error window "OMEdit cannot be opened because of a problem." appears. I have Mac OS X 10.15.3. Any help would be appreciated.
Thank you!
Hello - I'm trying to have gas flow from a source into a solution, but I'm having difficulty with the mediums (chemical package uses substanceData, others use Medium). I've modified a few packages so the code will get about 2/3 of the way through compiling now, but keeps getting thrown on this error message:
"Division by zero at time 0, where divisor expression is: boundary_source.medium.R*boundary_source.T." I suspect boundary_source.T is being set to zero (why would R be incorrect?), but I don't know how to fix it. I've attached all the relevant files. Any suggestions would be helpful!
Thank you!
MoistAirExt.mo
MoistAirExtExt.mo
Air-Record.mo
GasTransfer.mo
Problem fixed - syntax error.
Hello -
I am trying to incorporate the chemical package into gas flow (have gas flow through a pipe from a tank, proceed through a chemical reaction, and then flow into another tank). I'm running into several problems while interfacing the mediums. Currently, I have a transcription error that reads:
[GasTransfer: 50:5-50:31]: Expected Air_Record to be a component, but found class instead.
The error message is referring to the substance component:
Chemical.Components.Substance substance(
redeclare package stateOfMatter = Chemical.Interfaces.IdealGas,
substanceData = Air_Record,
use_mass_start = true,
mass_start = 0.001)
The substances data in the chemical package doesn't have the compounds I'm working with, so I modified the existing ideal gas packages for what I need. Now, though, I get the "found class" error message no matter what I declare the substanceData as (even if I use one of the packages used in the examples). Any help would be appreciated!
- Index
- » Users
- » PCModeler20
- » Profile