Equation-Based Modeling

Slides:



Advertisements
Similar presentations
Curve Fitting using the Optimization Module in COMSOL
Advertisements

Finite element method Among the up-to-date methods of stress state analysis, the finite element method (abbreviated as FEM below, or often as FEA for analyses.
Acoustic-Structural Interaction in a Tuning Fork
Living room acoustics You can use the heading from the model documentation for the title. © 2013 COMSOL. All rights reserved.
Sedan Interior Acoustics
Capacitive Micromotor
Parameterizing a Geometry using the COMSOL Moving Mesh Feature
Dynamic model of a drop shot from an inkjet printer.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2013 – 12269: Continuous Solution for Boundary Value Problems.
Point-wise Discretization Errors in Boundary Element Method for Elasticity Problem Bart F. Zalewski Case Western Reserve University Robert L. Mullen Case.
Multiscale Packed Bed Reactor with Extra Dimension
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2014 – 35148: Continuous Solution for Boundary Value Problems.
Pacemaker Electrode Bidirectional Interface to Autodesk Inventor.
Bidirectional Interface to SolidWorks
By S Ziaei-Rad Mechanical Engineering Department, IUT.
Materials Science & Engineering University of Michigan
1 Mathematical Modelling III Iain A. Anderson Floor 6, 70 Symonds St. x In this module we will model: 1)Electronic autowasher.
CSE351/ IT351 Modeling and Simulation
1 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 6 FLUID KINETMATICS.
Finite Element Modeling with COMSOL Ernesto Gutierrez-Miravete Rensselaer at Hartford Presented at CINVESTAV-Queretaro December 2010.
Partial differential equations Function depends on two or more independent variables This is a very simple one - there are many more complicated ones.
MCE 561 Computational Methods in Solid Mechanics
PHY 042: Electricity and Magnetism
Numerical methods for PDEs PDEs are mathematical models for –Physical Phenomena Heat transfer Wave motion.
Impedance Spectroscopy Study of an SOFC Unit Cell
Introduction to virtual engineering László Horváth Budapest Tech John von Neumann Faculty of Informatics Institute of Intelligent Engineering.
9.6 Other Heat Conduction Problems
Multiphysics Modeling in FEMLAB 3 Tuesday, September 14th Woods hole Remi Magnard.
Dr. R. Nagarajan Professor Dept of Chemical Engineering IIT Madras Advanced Transport Phenomena Module 2 Lecture 4 Conservation Principles: Mass Conservation.
News in COMSOL Multiphysics 3.2 Place Prague Bertil Waldén COMSOL AB.
S.S. Yang and J.K. Lee FEMLAB and its applications POSTEC H Plasma Application Modeling Lab. Oct. 25, 2005.
Boundary Collocation Methods: Review and Application to Composite Media P. A. Ramachandran Washington University St. Louis, MO Lecture Presented at UNLV.
Ansys Workbench 1 Introduction
1 Chapter 8 Ordinary differential equation Mathematical methods in the physical sciences 3rd edition Mary L. Boas Lecture 5 Introduction of ODE.
The use and application of FEMLAB
Non stationary heat transfer at ceramic pots firing Janna Mateeva, MP 0053 Department Of Material Science And Engineering Finite Element Method.
Finite Element Method.
Lecture 16 Solving the Laplace equation in 2-D Remember Phils Problems and your notes = everything Only 6 lectures.
EEE 431 Computational methods in Electrodynamics Lecture 1 By Rasime Uyguroglu.
Coupling Heterogeneous Models with Non-matching Meshes by Localized Lagrange Multipliers Modeling for Matching Meshes with Existing Staggered Methods and.
Partial Differential Equations Finite Difference Approximation.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
The complex exponential function REVIEW. Hyperbolic functions.
ANSYS for MEMS by Manjula1 FEM of MEMS on ANSYS MEMS Summer 2007 Why FEM for MEMS? Features in ANSYS Basic Procedures Examples.
Fundamentals of Electric Circuits Chapter 16 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Summer School for Integrated Computational Materials Education 2015 Computational Mechanics: Basic Concepts and Finite Element Method Katsuyo Thornton.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Computational fluid dynamics Authors: A. Ghavrish, Ass. Prof. of NMU, M. Packer, President of LDI inc.
HEAT TRANSFER FINITE ELEMENT FORMULATION
Modeling Biosystems Mathematical models are tools that biomedical engineers use to predict the behavior of the system. Three different states are modeled.
Engineering Analysis – Computational Fluid Dynamics –
Cracow Grid Workshop, November 5-6, 2001 Concepts for implementing adaptive finite element codes for grid computing Krzysztof Banaś, Joanna Płażek Cracow.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
A Non-iterative Hyperbolic, First-order Conservation Law Approach to Divergence-free Solutions to Maxwell’s Equations Richard J. Thompson 1 and Trevor.
1 IV European Conference of Computational Mechanics Hrvoje Gotovac, Veljko Srzić, Tonći Radelja, Vedrana Kozulić Hrvoje Gotovac, Veljko Srzić, Tonći Radelja,
Partial Derivatives Example: Find If solution: Partial Derivatives Example: Find If solution: gradient grad(u) = gradient.
Chapter 2: Heat Conduction Equation
Scattering Control using COMSOL Multiphysics Modeling Billy D. Jones APL-UW 4 Feb 2016.
Lecture Objectives: - Numerics. Finite Volume Method - Conservation of  for the finite volume w e w e l h n s P E W xx xx xx - Finite volume.
Computation Geometry Governing Equations Boundary Conditions Initial Conditions Parameters, dimensionless groups Constraints, other requirements Discretization/mesh.
Ch. 12 Partial Differential Equations
1 Variational and Weighted Residual Methods. 2 Introduction The Finite Element method can be used to solve various problems, including: Steady-state field.
FE Modeling of a Thin Film Application © Copyright 2014 COMSOL. COMSOL, COMSOL Multiphysics, Capture the Concept, COMSOL Desktop, and LiveLink are either.
Chapter 6 Thermal Analysis
FEA Introduction.
Materials Science & Engineering University of Michigan
GENERAL VIEW OF KRATOS MULTIPHYSICS
Objective Numerical methods Finite volume.
MATHEMATICAL MODELING
Comparison of CFEM and DG methods
Presentation transcript:

Equation-Based Modeling © Copyright 2014 COMSOL. COMSOL, COMSOL Multiphysics, Capture the Concept, COMSOL Desktop, and LiveLink are either registered trademarks or trademarks of COMSOL AB. All other trademarks are the property of their respective owners, and COMSOL AB and its subsidiaries and products are not affiliated with, endorsed by, sponsored by, or supported by those trademark owners. For a list of such trademark owners, see www.comsol.com/trademarks

Multiphysics and Single-Physics Simulation Platform Mechanical, Fluid, Electrical, and Chemical Simulations Multiphysics - Coupled Phenomena Two or more physics phenomena that affect each other with no limitation on which combinations how many combinations Single Physics One integrated environment – different physics and applications One day you work on Heat Transfer, next day Structural Analysis, then Fluid Flow, and so on Same workflow for any type of modeling Enables cross-disciplinary product development and a unified simulation platform

Highly Customizable and Adaptable Create your own multiphysics couplings Customize material properties and boundary conditions Type in mathematical expressions, combine with look-up tables and function calls User-interfaces for differential and algebraic equations Parameterize on material properties, boundary conditions, geometric dimensions, and more High-Performance Computing (HPC) Multicore & Multiprocessor: Included with any license type Clusters & Cloud: With floating network licenses

Product Suite – COMSOL 4.4

When is Equation-Based Modeling Needed? Try to avoid equation-based modeling if possible! Using built-in physics interfaces enables ready-made postprocessing variables and other tools for faster model setup with much lower risk of human error Applications that previously required equation-based modeling but now has a dedicated physics interface: Fluid-Structure Interaction (Structural Mechanics Module, MEMS Module) Surface adsorption and reactions (Chemical Reaction Engineering Module, Plasma Module) Shell-Acoustics and Piezo-Acoustics (Acoustics Module) Thermoacoustics (Acoustics Module) and many more…

When is Equation-Based Modeling Needed? Try to avoid equation-based modeling if possible! But: we don’t have every imaginable physics equation built-into COMSOL (yet!). So there is sometimes a need for custom modeling.

Custom-Modeling in COMSOL COMSOL Multiphysics® allows you to model with PDEs or ODEs directly: Use one of the equation-template user interfaces You do *not* need to write “user-subroutines” in COMSOL to implement your own equation! Benefit: COMSOL’s nonlinear solver gets all the nonlinear info with gradients and all. Faster and more robust convergence.

Customization Approaches Four modeling approaches: Ready-made physics interfaces First principles with the equation templates Start with ready-made physics interface and add additional terms. Start with a ready-made physics interface and add your own separate equation (PDE,ODE) to represent physics that is not already available as a ready-made application mode Also: The Physics Builder lets you create your own user interfaces that hides the mathematics for your colleagues and customers

Linear Model Problems: Fundamental Phenomena Laplace’s equation Heat equation Wave equation Helmholtz equation Convective Transport equation

COMSOL PDE Modes: Graphical User Interfaces Coefficient form General form Weak form All these can be used for scalar equations or systems Which to use? Whichever is more convenient for you and your simulation needs

Coefficient Form Coefficient Matching Example: Poisson’s equation inside domain on boundary inside subdomain on subdomain boundary Implies c=f=h=1 and all other coefficients are 0.

Example: Block: 10x1x1 PDE: default Poisson’s equation with unknown u. Dirichlet boundary condition everywhere: u=0

Model Wizard: Coefficient Form PDE with one dependent field variable u

Stationary study

Geometry: block 10-by-1-by-1. Units in meters (SI).

Coefficient Form PDE with c=1, a=0, f=1

Mass Coefficients are inactive due to Stationary Study

Dirichlet Boundary Condition

All boundaries: u=0

Automatic tet mesh ….or swept hex mesh

Control over shape function and element order

Stationary solution Plot of dependent field variable u on slices

Differentiate u with respect to x: d(u,x)

Recover option for derivatives switched on Recover option for derivatives switched on. Gives smoother derivative field.

Also available as ppr operator. The Recover feature applies “polynomial-preserving recovery” on the partial derivatives (gradients). Higher-order approximation of the solution on a patch of mesh elements around each mesh vertex. Also available as ppr operator. d(u,x) with no Recover smoothing d(u,x) with Recover smoothing

Second derivative: d(d(u,x),z)

Coefficient Form, Interpretations source diffusion absorption convection source convection damping/mass mass

Coefficient Form, Structural Analysis Wave Equation initial/thermal stress elastic stress body force (gravitation) damped mass mass density damping coefficient stress, u= displacement vector stiffness, “spring constant”

Coefficient Form, Transport Diffusion Equation source diffusion absorption convection source convection accumulation/storage

Coefficient Form, Steady-State Equation

Coefficient Form, Frequency-Response Wave Equation diffusion Helmholtz term source Helmholtz equation: Wave number Wave length

Example: lambda=2.5 k=2*pi/lambda a= - k^2 f=0 u=1 one end u=0 other end

User-defined Parameters: Wavelength: lambda=2.5 m Wavenumber: k=2p/lambda~2.5 m-1

Coefficient Form PDE c=1 a=-k^2 f=0

Dirichlet Boundary Condition u=1 Oscillating wave with peak value 1 Spatial frequency is given by wavenumber k

Dirichlet Boundary Condition u=0 Mirror reflection

Solution u: wave with 4 wavelengths over 10 m block length

Text input field allows typing complex valued expressions. Here: u + superimposed higher frequency wave with wavenumber 5*k

abs() for absolute value (complex modulus)

Complex Arithmetics Can compute: real(w) imag(w) abs(w) arg(w) conj(w)

General Form – A more compact formulation inside domain on domain boundary For Poisson’s equation, the corresponding general form implies All other coefficients are 0

Weak Form Think of the weak form as a generalization of the principal of virtual work (for those familiar with that) with virtual displacement du The test function n ~ du Convection-diffusion equation: Multiply by test function n and integrate: Integrate by parts and use boundary conditions: In COMSOL you can type the integrands of this integral expression: Weak Form PDE

Typing the Weak Form c*grad(u) ·grad(test(u))= c*grad(u) ·test(grad(u))= c*(ux*test(ux)+uy*test(uy)+uz*test(uz)) Note: COMSOL convention has the integral in the right-hand side so additional negative sign needed in the GUI

Modifying Variables and Equations Enable Equation View on the Model Builder Show menu Once enabled, Equation View stays enabled for new models Variables, weak expressions and constraints can be modified Modified rows are marked with warning signs Use reset buttons to cancel modifications

Transient Diffusion Equation ~ Heat Equation source accumulation/storage

Example: c=1 da=1 f=0 Transient 0->100 s “Cooling” u=0 at ends “Heat Source” f=5+3*sin(2*pi*0.1[Hz]*t)

Time Dependent study

3 overlapping blocks of length 4,6, and 10 m COMSOL partitions these into 3 non-overlapping domains. Field and flux automatically continuous across interior boundaries

Cofficient Form PDE with no volume source: f=0

Cofficient Form PDE with no volume source: f=0

Mass Coefficients are here active due to Time Dependent Study

Superimposed source term: f=5+3*sin(2*pi*0.1[Hz]*t)

u=0 at the ends

Time Dependent study settings: solve between 0s and 100s, output solution at every 0.1s. Underlying time stepping algorithm is automatic and controlled by user-defined tolerances.

Solution u at 38.2s

Sample solution inside domain using Domain Point Probe

Probe position controlled by slider control

Value of u vs. time at probe location

Equation Systems COMSOL can handle systems of equations in all of Coefficient Form General Form Weak Form or combinations of the above Easy setup from Model Wizard

Model Wizard: Coefficient Form PDE with two dependent field variables u1 & u2

The Coefficient Form PDE for two dependent field variables. The PDE coefficients and sources are now matrices (or high-order tensor-like entities) and vectors.

Coefficient Form PDE for 2 variables in 2D Space da c b a f The default coefficients corresponds to two decoupled Poisson’s equations. Fill out with nonlinear or off-diagonal coefficients, as well as nonlinear source terms for couplings.

Examples: Electrical Signals in a Heart, General Form PDE Fitzhugh-Nagumo Equations 𝜕 𝑢 1 𝜕𝑡 = 𝛻 2 𝑢 1 + α− 𝑢 1 𝑢 1 −1 𝑢 1 − 𝑢 2 𝜕 𝑢 2 𝜕𝑡 =ε 𝛽 𝑢 1 − 𝛾𝑢 1 −𝛿 Landau-Ginzburg Equations 𝜕 𝑣 1 𝜕𝑡 − 𝛻 2 (𝑣 1 − 𝑐 1 𝑣 2 )= 𝑣 1 − 𝑣 1 − 𝑐 3 𝑣 2 𝑣 1 2 + 𝑣 1 2 𝜕 𝑣 2 𝜕𝑡 − 𝛻 2 ( 𝑐 1 𝑣 1 + 𝑣 2 )= 𝑣 2 − 𝑐 3 𝑣 1 − 𝑣 2 𝑣 1 2 + 𝑣 1 2

Simplified representation of a heart as ½ sphere + ½ ellipsoid

Fitzhugh-Nagumo Equations

Fitzhugh-Nagumo Equations Solution: u1

Landau-Ginzburg Equations

Landau-Ginzburg Equations Solution: v1

End of Presentation