1 / 25

Ted Eary MWH Americas, Inc. Fort Collins, Colorado (ted.eary@mwhglobal)

Approaches for Modeling Complex Processes through Integration of GoldSim and Specialized Supporting Models. Ted Eary MWH Americas, Inc. Fort Collins, Colorado (ted.eary@mwhglobal.com). GoldSim 2007 User Conference, San Francisco. Integration Approaches. Submodel Abstraction & Incorporation

Download Presentation

Ted Eary MWH Americas, Inc. Fort Collins, Colorado (ted.eary@mwhglobal)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Approaches for Modeling Complex Processes through Integration of GoldSim and Specialized Supporting Models Ted Eary MWH Americas, Inc. Fort Collins, Colorado (ted.eary@mwhglobal.com) GoldSim 2007 User Conference, San Francisco

  2. Integration Approaches • Submodel Abstraction & Incorporation • Independent Models linked through inputs and/or outputs • Direct Linkage

  3. Approach 1:Submodel Abstraction & Incorporation Input Specialized Supporting Models GoldSim Model • Geochemistry • Hydrology • Limnology • Climate • etc… Data or abstracted submodel Simplified Submodel (Specific Process:solubility, reaction kinetics, runoff, infiltration, evaporation, …) Output

  4. Example:Water Treatment Plant Neutralizers, flocculants, polishing agents, filtration, aeration, etc. Acid Water Clean Water Sludge Problem: How much sludge will be produced?

  5. Approach for Submodel Incorporation Know: Sludge mass ≈ function(amount of chemicals added, time, pH, etc.) Solution: Develop submodels of specific processes from a combination of experimental data and theoretical calculations (e.g., supporting models). Zinc Gypsum Aluminum Iron Create Lookup Table elements for GoldSim

  6. GoldSim Model of Water Treatment System Solubilities are defined in the fluid properties element as Lookup Table functions, i.e., individual submodels.

  7. SomeResults Total Sludge Tonnes Lime Added Time, days Lime Tank Aeration Tank Influent Concentration, mg/L Effluent pH Time, days

  8. Submodel Abstraction & Incorporation • Advantages • Simple relationships focused on the most important processes • Can use a combination of empirical and theoretical approaches • Disadvantages • Potentially limited range of applicability • Abstraction may make it difficult to understand relationships

  9. Approach 2: Independent Models Sequentially Linked through Inputs and/or Outputs Input Input Supporting Model (e.g., Geochemistry, Hydrology, Limnology, etc…) GoldSim Model Output (Excel) Output to Excel Input InputfromExcel Supporting Model (e.g., Geochemistry, Hydrology, Limnology, etc…) GoldSim Model Output Output (Excel)

  10. Example:Solution Mixing Chemistry Acidic pH, High metal water, Runoff (variable flow rate) Alkaline pH, Clean water, Constant flow rate Mixing and Reactions Problem: How to calculate solution chemistry after mixing and reactions?

  11. Approach • Know: Mixed solution chemistry is a function(mixing proportions of two solutions – one acidic and one alkaline). • Solution: • Use the independent supporting model to calculate all possible outcomes and put the results in an Excel worksheet • ( e.g., 1% acidic + 99%alkaline, 2% acidic + 98% alkaline, 3% acidic + 97% alkaline, etc……) • Import the data from Excel into a Lookup Table element. • Define an index in GoldSim to retrieve the appropriate mixed solution composition. Specialized Supporting Model Main Model PHREEQC (chemistry) Input from Excel GoldSim (Water Balance) Output (Excel)

  12. GoldSim Model (Details in next slide)

  13. Chemistry Lookup Table (TableOfMixFractionChemistries) Species across Mixing Index down

  14. Mixing Only Some Results Mixing and Reaction Al: Mixing Fe: Mixing Al: Mixing and Reaction Fe: Mixing and Reaction

  15. Independent Models • Advantages • Easy to set up and run • Leverage most of the capabilities of the independent supporting models with careful design • Disadvantages • Limited to representing either the starting point or ending point • Need to understand the system very well to make sure that the supporting model represents all possible inputs or outcomes

  16. Approach 3: Direct Linkage Input GoldSim Model • Data transfer for every time step. Two approaches: • Excel (Spreadsheet Element) • Dynamic Link Library (External DLL Element) Input Output Supporting Model (e.g., Geochemistry, Hydrology, GIS, Chemical Processing,…) Output

  17. DLL Data Flow Between GoldSim and the External Model GoldSim Model External DLL Program External DLL Element DLL Functions • Receive and format input data • Run Supporting Model • Get Output from Supporting Model • Return output to GoldSim Each time step Supporting Model Output

  18. Same Example:Solution Mixing Chemistry Acidic pH, High metal water, Runoff (variable flow rate) Alkaline pH, Clean water, Constant flow rate Mixing and Reactions Problem: How to calculate solution chemistry after mixing and reactions? Solution: Use DLL to link to the PHREEQC geochemical model.

  19. GoldSim Model DLL Element

  20. Inside the DLL Interface tab Inputs to external DLL Outputs from external DLL

  21. Mixing Only Some Results Mixing and Reaction Al: Mixing Fe: Mixing Al: Mixing and Reaction Fe: Mixing and Reaction

  22. Direct Linkage through Dynamic Link Libraries (DLLs) • Advantages • Supporting model used each time step • Leverage most of the capabilities of the independent supporting models • Disadvantages • Execution time increased • Custom software code needed to construct the correct interface to the supporting model

  23. Relative Speed(Solution Mixing, 5-year, 1-day time step)

  24. Summary • Many ways to model complex processes; • Advantages and disadvantages for each approach; and • Choice of approach depends on the system simulated and goals of the model.

  25. Thanks Examples available for downloads: http://www.goldsim.com/ModuleSiteMap.asp Model ID: 57 – Linking Geochemical Codes to GoldSim Model ID:69 - Simulation of Water Treatment for Acid Mine Drainage Model ID:70 -Calculating the Solubility Using Equilibrium Chemistry Early geochemists describe the first dirt molecule (Go Rockies Beat Red Sox)

More Related