Top Banner
CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4 Henrik von Schenck, Gunnar Andersson, Jasper M. Van Baten, and Ed Fontes 6th CAPE-OPEN US Conference, Nashville 2009 © COPYRIGHT 2009, COMSOL, Inc
35
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Henrik von Schenck, Gunnar Andersson, Jasper M. Van Baten, and Ed Fontes

6th CAPE-OPEN US Conference, Nashville 2009

© COPYRIGHT 2009, COMSOL, Inc

Page 2: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Contents

• Introduction to COMSOL Multiphysics• Example model – Steam reformer unit• COMSOL / CAPE-OPEN Thermo interface• Embedding multiphysics models in flowsheet simulations

– Status of a Unit Operations interface

• Concluding Remarks

Page 3: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

COMSOL

• Swedish company started in 1986.• Released COMSOL Multiphysics in1998.• 180 employees worldwide.• 16 offices, 12 in Europe, 3 in the US and 1 in India• Distributors worldwide.

Page 4: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

The Multiphysics Approach

Page 5: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Multiphysics Modeling in Chemical Engineering

• Simulations applications accounting for time and space-dependency

• Freely combine governing • Freely combine governing equations for

– Fluid flow– Energy transport– Mass transport– Structural mechanics– Electromagnetics– Acoustics

Page 6: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Some Multiphysics Examples

• Fluid Structure Interaction– Solid structure may be

deformed by fluid flow– Flow is in turn affected by the

continuously deforming geometrygeometry

Page 7: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

• Thermomechanical stress in in a monolithic reactor

– Heat generated by chemical reaction puts thermal strain on the monolith structure

Some Multiphysics Examples

Page 8: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Some Multiphysics Examples

• Fuel cells– Fluid flow– Mass transport and reaction– Heat transfer– Charge balance– Charge balance

Fuel cell: Gas composition

and total electric current

as the cell voltage is

decreased.

Page 9: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Steam Reformer Model

• Unit serving a stationary fuel cell with hydrogen• Endothermic reactions in the catalytic bed

C3H8 + 6H2O 10H2 + 3CO2

Heating tubes

Insulating jacket

Catalytic bed

Page 10: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Steam Reformer Model

• Hydrogen production

– Endothermic reactions– Hot combustion gases supply heat to

C3H8 + 6H2O 10H2 + 3CO2

– Hot combustion gases supply heat to the catalytic bed in counter-flow

Porous media flow

Free flow

Chemical reactions

Page 11: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Steam Reformer Model

• Flow equations– Darcy’s Law

– Navier-Stokes equations

( )0p

t

ρε κρη

∂ + ∇ ⋅ − ∇ = ∂

( ) ( )( )Tp

tρ ρ η

ρ

∂ + ⋅ ∇ = ∇ ⋅ + ∇ + ∇ ∂

uu u I u u

• Heat transfer by convection and conduction

• Mass transport and reaction ( )ii i i i

cD c c R

t

∂ = −∇ ⋅ − ∇ + +∂

u

( )pp

C Tk T C Q

t

ρρ

∂= −∇ ⋅ − ∇ + +

∂u

( ) 0t

ρ ρ∂ + ∇ ⋅ =∂

u

Page 12: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Steam Reformer Model

• A tightly coupled system of equations

– Flow affects convective transport of heat and mass

– Chemical reactions change gas

Flow

– Chemical reactions change gas composition and consume energy

– Temperature affects reaction rates as well as fluid transport properties Mass Heat

Page 13: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Steam Reformer Model

• Accurate property data is central to accurate simulations

• Reformer bed– Density– Viscosity

( )( )

3 8 2 2 2C H H O H COT , p,w ,w ,w ,w

T , p,w ,w ,w ,w

ρη– Viscosity

– Heat capacity

• Heating tubes– Density– Viscosity– Thermal conductivity– Heat capacity

( )( )

3 8 2 2 2

3 8 2 2 2

C H H O H CO

p C H H O H CO

T , p,w ,w ,w ,w

C T , p,w ,w ,w ,w

η

( )( )( )

( )p

T , p

T , p

k T , p

C T , p

ρη

Page 14: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Choosing the CAPE-OPEN Approach

• Accuracy– Real-world thermodynamic and physical properties in simulations

• Versatility– Select from multiple thermo vendors

• Extensible• Extensible

Page 15: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

CAPE-OPEN Thermo in COMSOL

• Select thermo package• Select properties to calculate• Select compounds for (reacting) mixtures• Generate functions that call property calculations• Use functions in standard Multiphysics model set up

Page 16: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

COMSOL V4 Graphical User Interface

Page 17: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

CAPE-OPEN in the Model Builder

• Open the property package browser or load a saved configuration

Page 18: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

The Thermo Package Browser

• Select the desired property package

• Review its contents– Thermo version– Compounds– Compounds– Phases– Property calculations

Page 19: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Select Property Calculation

• Add nodes for the types of property calculation you want to perform

– Compound constant evaluation– Temperature dependent – Temperature dependent

properties– Pressure dependent properties– 1-phase properties– 2-phase properties– Equilibrium calculations

Page 20: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Example – 1 phase Property Calculation

• A wizard guides you through selections of

– Definitions

Page 21: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Example – 1 phase Property Calculation

• A wizard guides you through selections of

– Definitions– Properties

Page 22: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Example – 1 phase Property Calculation

• A wizard guides you through selections of

– Definitions– Properties– Compounds– Compounds

Page 23: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Example – 1 phase Property Calculation

• Exiting the wizard sets up the functions for the property calculations

• Names of functions and arguments can be user-definedarguments can be user-defined

Page 24: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

CAPE-OPEN in the Model Builder

• Functions created are added as nodes in the Model Builder

• The functions calling external property calculations are global and can be used anywhere in and can be used anywhere in the Multiphysics GUI

Page 25: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

CAPE-OPEN in the Model Builder

Page 26: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

CAPE-OPEN in the Model Builder

Page 27: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Comparison of Results

• CAPE-OPEN property calculations

– Propane conversion 97%

• Constant properties– Propane conversion 89%– Propane conversion 89%

Page 28: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

COMSOL / CAPE-OPEN Thermo Socket

• Thermo backbone tested and working since COMSOL V3.5– Supports both 1.0 and 1.1 Thermo standards– Compliancy testing; TEA, Infochem Multiflash, ProSim Simulis, VMG Thermo,

TUV NEL PPDS, Aspen Properties

• GUI support in COMSOL V4• GUI support in COMSOL V4– Q1 next year

Page 29: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Embedding a Multiphysics Model in a Flowsheet :CAPE-OPEN Unit Operations

Product

Separator

Hot

ste

am

Col

d st

eam

Feed

Recycle

Col

d st

eam

Page 30: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Outline of Required Steps

• Map ports to boundaries• Map dependent variables• Map parameters to COMSOL expressions or constants• Select thermo

– External Thermo– Use thermo from material connected to port

Page 31: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Map Feed Streams to Inlet Boundaries

• Assign inlet port to a boundary group

– Calculate boundary area (automatic)

• Map inlet stream compounds to dependent variables in the dependent variables in the Multiphysics model

• Translate feed stream properties to profiles in the inlet boundaries

– Plug-flow– Laminar inflow– Turbulent inflow

Inlet boundary group

Page 32: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Map Outlet Boundaries to Product Streams

• Assign outlet port to a boundary group

• Translate COMSOL field variables to outlet stream properties properties

– Total flow of each compound by predefined boundary integrals

• Flash the material attached to the port

∫ ⊥= dAXvf COCOCO 222ρ

Page 33: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Selecting Thermo

• External Thermo– Property packages not used by

the flowsheet simulation environment

• Consistent thermo• Consistent thermo– Thermodynamic property

packages that are based on a material object connected to one of the ports

Page 34: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Summary

• CAPE OPEN Thermo Socket– Thermo backbone tested and working since COMSOL V3.5– Thermo GUI part of COMSOL V4.0– Q1 next year

• CAPE OPEN Unit Operations plug• CAPE OPEN Unit Operations plug– Design stage– Part of COMSOL V4.1

Page 35: CAPE-OPEN Interfaces in COMSOL Multiphysics Version 4

Thank you for your attention