The Nagumo Equation with Comsol Multiphysics

Similar documents
METU Mechanical Engineering Department ME 582 Finite Element Analysis in Thermofluids Spring 2018 (Dr. C. Sert) Handout 12 COMSOL 1 Tutorial 3

Modelling With Comsol: Gradients and Pattern Formation Direct questions and suggestions to Denis

Unsteady-State Diffusion in a Slab by Robert P. Hesketh 3 October 2006

For this week only, the TAs will be at the ACCEL facility, instead of their normal office hours.

Terminal Falling Velocity of a Sand Grain

The Level Set Method THE LEVEL SET METHOD THE LEVEL SET METHOD 203

Using Periodic Boundary Conditions

Free Convection in a Water Glass

Step 1: Problem Type Specification. (1) Open COMSOL Multiphysics 4.1. (2) Under Select Space Dimension tab, select 2D Axisymmetric.

Coupled PDEs with Initial Solution from Data in COMSOL 4

How TMG Uses Elements and Nodes

Outline. COMSOL Multyphysics: Overview of software package and capabilities

COMSOL Model Report. 1. Table of Contents. 2. Model Properties. 3. Constants

Introduction to CS graphs and plots in Excel Jacek Wiślicki, Laurent Babout,

Solved with COMSOL Multiphysics 4.2

Finite Element Convergence for Time-Dependent PDEs with a Point Source in COMSOL 4.2

Convection Cooling of Circuit Boards 3D Natural Convection

Strömningslära Fluid Dynamics. Computer laboratories using COMSOL v4.4

Smoothing the Path to Simulation-Led Device Design

Analysis of a silicon piezoresistive pressure sensor

How to plot the gradients of magnetic field

Middle East Technical University Mechanical Engineering Department ME 413 Introduction to Finite Element Analysis Spring 2015 (Dr.

VERSION 4.3. Introduction to Optimization Module

1.2 Numerical Solutions of Flow Problems

Solved with COMSOL Multiphysics 4.2

Porous Reactor with Injection Needle

Parallel Performance Studies for COMSOL Multiphysics Using Scripting and Batch Processing

Velocity and Concentration Properties of Porous Medium in a Microfluidic Device

BioFuel Graphing instructions using Microsoft Excel 2003 (Microsoft Excel 2007 instructions start on page mei-7)

Efficient Simulation of a Reaction-Diffusion System with a Fast Reaction in the Asymptotic Limit

Partial Differential Equations

FEMLAB Exercise 1 for ChE366

Solved with COMSOL Multiphysics 4.2

Vehicle thermal safety with THESEUS-FE. Author: Dr. Daniel Koester

Timo Lähivaara, Tomi Huttunen, Simo-Pekka Simonaho University of Kuopio, Department of Physics P.O.Box 1627, FI-70211, Finland

Assignment in The Finite Element Method, 2017

The viscous forces on the cylinder are proportional to the gradient of the velocity field at the

Polymath 6. Overview

Modeling Unsteady Compressible Flow

SOLIDWORKS Flow Simulation Options

SimLab 14.3 Release Notes

Automation of COMSOL Multiphysics Parameter Studies using the MATLAB LiveLink

Steady Flow: Lid-Driven Cavity Flow

Problem description. The figure shows a disc braking system.

FLUENT Training Seminar. Christopher Katinas July 21 st, 2017

Vocabulary Unit 2-3: Linear Functions & Healthy Lifestyles. Scale model a three dimensional model that is similar to a three dimensional object.

Solution Recording and Playback: Vortex Shedding

Solved with COMSOL Multiphysics 4.0a. COPYRIGHT 2010 COMSOL AB.

ROSE-HULMAN INSTITUTE OF TECHNOLOGY

Solved with COMSOL Multiphysics 4.3a

Partial Differential Equation Toolbox

Best Practices Workshop: Overset Meshing

Directions: 1) Delete this text box 2) Insert desired picture here

Exercise 12a - Post Processing for Stress/Strain Analysis

Nonlinear Potential Flow Solver Development in OpenFOAM

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB

Using a Single Rotating Reference Frame

SAS Visual Analytics 8.2: Working with Report Content

Non-Isothermal Heat Exchanger

Desktop Studio: Charts. Version: 7.3

Lab - Introduction to Finite Element Methods and MATLAB s PDEtoolbox

Training Course Content

Finite Element Analysis using ANSYS Mechanical APDL & ANSYS Workbench

Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders

Topology optimization of heat conduction problems

2D & 3D Finite Element Method Packages of CEMTool for Engineering PDE Problems

Audio acoustic modeling using full-wave methods

Problem description. The FCBI-C element is used in the fluid part of the model.

Fluid Mechanics Simulation Essentials R2014X

Chapter 1 Introduction

Desktop Studio: Charts

Maximizing an interpolating quadratic

Post-processing utilities in Elmer

Slide 1 / 96. Linear Relations and Functions

Computational Modeling and Simulation of the Human Duodenum

Tutorial. BOSfluids. Water hammer (part 3) Dynamic Analysis using Caesar II

Spreadsheet View and Basic Statistics Concepts

INTERNATIONAL JOURNAL OF CIVIL AND STRUCTURAL ENGINEERING Volume 2, No 3, 2012

MODELING MIXED BOUNDARY PROBLEMS WITH THE COMPLEX VARIABLE BOUNDARY ELEMENT METHOD (CVBEM) USING MATLAB AND MATHEMATICA

COMSOL Multiphysics: MEMS Gyroscope Design

Particle Tracing Module

Lesson: Adjust the Length of a Tuning Fork to Achieve the Target Pitch

The 3 Voxet axes can be annotated: Menu > Voxet > Tools > Annotate Voxet > Custom system.

VOLCANIC DEFORMATION MODELLING: NUMERICAL BENCHMARKING WITH COMSOL

Using the Discrete Ordinates Radiation Model

HeatWave Three-dimensional steady-state and dynamic thermal transport with temperature-dependent materials

Digests from his work is presented in this chapter partly rewritten/restructured

Exercise 16: Magnetostatics

Essay 5 Tutorial for a Three-Dimensional Heat Conduction Problem Using ANSYS

Implementation in COMSOL

Transient Stability Analysis with PowerWorld Simulator

Step 2: After opening the file, you should see following window. Select all the code, right click and then copy the code

Traveling Wave Analysis of Partial Differential Equations

computational Fluid Dynamics - Prof. V. Esfahanian

Data Table from an Equation

A COUPLED FINITE VOLUME SOLVER FOR THE SOLUTION OF LAMINAR TURBULENT INCOMPRESSIBLE AND COMPRESSIBLE FLOWS

A Simple Embedding Method for Solving Partial Differential Equations on Surfaces

CFD in COMSOL Multiphysics

Prerequisites: This tutorial assumes that you are familiar with the menu structure in FLUENT, and that you have solved Tutorial 1.

Fictitious Domain Methods and Topology Optimization

Transcription:

The Nagumo Equation with Comsol Multiphysics Denny Otten 1 Christian Döding 2 Department of Mathematics Bielefeld University 33501 Bielefeld Germany Date: 25. April 2016 1. Traveling Front in the Nagumo equation Consider the Nagumo equation u t = u xx +u(1 u)(u b), x R, t 0 for 0 < b < 1, where u = u(x,t) R. We want to solve this equation numerically for a suitable initial value function u 0 with Comsol Multiphysics. Therefore, we have to restrict the equation on a sufficiently large bounded domain Ω R with homogeneous Neumann boundary conditions, i.e. we solve the initial boundary value problem (1.1) u t = u xx +u(1 u)(u b), x Ω, t (0,T], u(,0) = u 0, x Ω, t = 0, u x = 0, x Ω, t [0,T], on the spatial domain Ω = ( 50,50) for end time T = 100, initial data u 0 (x) = 1 1+exp( x 2 ), x R and parameter b = 1 4. For the space discretization we use linear Lagrange elements with maximal element size x = 0.1. For the time discretization we use the BDF method of maximum order 2 with intermediate time steps, time stepsize t = 0.1, relative tolerance rtol = 10 3 and absolute tolerance atol = 10 4 with global method set to be unscaled. The nonlinear equations should be solved by the Newton method. i.e. automatic (Newton). 1 e-mail: dotten@math.uni-bielefeld.de, phone: +49 (0)521 106 4784, fax: +49 (0)521 106 6498, homepage: http://www.math.uni-bielefeld.de/~dotten/. 2 e-mail: cdoeding@math.uni-bielefeld.de, phone: +49 (0)521 106 4765 1

2 2. Model Wizard Start Comsol Multiphysics. To start Comsol Multiphysics 5.2 open the Terminal and enter comsol -ckl Model Wizard. Space dimension In the New window, click Model Wizard. In the Model Wizard window, click 1D in the Select Space Dimension menu. Equation In the Select Physics tree, select Mathematics>PDE Interfaces>Coefficient Form PDE (c). Click Add. Next, locate the Dependent Variables section. In the Field name text field, type u. In the Dependent variables text field, type also u. Study settings Click Study and choose Preset Studies>Time Dependent. Click Done. Some Advanced Settings. Hint: In the Model Builder window you should click on the Show icon and enable everything that is possible from the menu: Equation Sections (Equation View, Override and Contribution, Discretization, Stabilization, Advanced Physics Options, Advanced Study Options and Advanced Results Options). Done this, click Expand All icon. 3. Geometry In the Model Builder tree, expand the Component 1 (comp1) node, right-click Geometry 1 and select Interval. In the Settings window for Interval, locate the Interval section. In the Left endpoint text field, type -50. In the Right endpoint text field, type 50. In the Model Builder tree, right-click on the Component 1 (comp1) Geometry 1 node and select Build all. (Alternatively, press the short cut F8.) 4. Partial differential equation General Settings. Click on Component 1 (comp1) Coefficient Form PDE (c). Locate the Settings window for Coefficient Form PDE. In the Label text field, type Nagumo Equation. In the Discretization section choose Shape function type: Lagrange, Element order: Linear.

3 Partial differential equation. We define the PDE: Switch to Component 1 (comp1) Nagumo Equation (c) Coefficient Form PDE 1 2 u e a t 2 +d u a + ( c u αu+γ)+β u+au = f t with = x, and enter the following values Mass Coefficient e a : 0, Damping or Mass Coefficient d a : 1, Diffusion coefficient c: 1, Conservative Flux Convection Coefficient α: 0, Conservative Flux Source γ: 0, Convection Coefficient β: 0, Absorption Coefficient a: 0, Source Term f: fu. Boundary Conditions. Since the PDE requires homogeneous Neumann boundary conditions at both end points of the interval, we do not must change anything. Hint: By default, there is implemented a zero flux boundary condition on the whole boundary, that corresponds to a homogeneous Neumann boundary condition. Initial Values. We define the initial value u(,0) = u 0 for the partial differential equation: Click on Component 1 (comp1) Nagumo Equation (c) Initial Values 1. In the Initial Values section enter Initial value for u: u0, Initial time derivative of u: 0. The quantity u0 will be defined below in Section 5. This completes the implementation of the initial boundary value problem. 5. Parameters and Variables Parameters. We first define the parameters and constants arising in our model as global parameters : In the Model Builder tree, right-click on the Global Definitions node and select Parameters. (Alternatively: On the Model toolbar, click Parameters.) In the Settings window for Parameters, locate the Parameters section. In the table add the following entry: Name Expression Value Description b 1/4 0.25 constant of Nagumo equation T 100 100 end time Variables 1. We now define all functions which appear in our model as local variables. In the Model Builder tree, right-click on the Component 1 (comp1) Definitions node and select Variables. In the Settings window for Variables, locate the Variables section. In the table add the following entries: Name Expression Unit Description u0 1/(1+exp(-x/sqrt(2))) initial value fu u*(1-u)*(u-b) nonlinearity

4 6. Mesh In the Model Builder tree, click on Component 1 (comp1) Mesh 1. In the Settings window for Mesh, locate the Mesh Settings section. Set the Sequence type on User-controlled mesh. In the Model Builder tree, switch to Component 1 (comp1) Mesh 1 Size. In the Settings window for Size, locate the Element Size Parameters section. In the Maximum element size text field, type 0.1. In the Model Builder tree, right-click on Component 1 (comp1) Mesh and select Build All. 7. Studies and Computation Study 1. Study 1 Click on Study 1. Locate the Settings window for Study. In the Label text field, type Study 1: Nagumo Equation. Step 1 Click on Study 1: Nagumo Equation Step 1: Time Dependent. Locate the Settings window for Time Dependent. In the Study Settings section enter Time unit: s, Times: range(0,0.1,t), Relative tolerance: 0.001. The last input requires to enable the corresponding checkbox. Solver Configurations Right-click on Study 1: Nagumo Equation Solver Configurations and select Show Default Solver. Click on Study 1: Nagumo Equation Solver Configurations Solution 1 (sol1) Time- Dependent Solver 1. Locate the Settings window for Time Dependent Solver. In the Absolute Tolerance section enter Global method: Unscaled, Tolerance: 0.0001. In the Time Stepping section enter Method: BDF, Steps taken by solver: intermediate, Maximum BDF order: 2. Click on Study 1: Nagumo Equation Solver Configurations Solution 1 (sol1) Time- Dependent Solver 1 Fully Coupled 1. Locate the Settings window for Fully Coupled. In the Method and Termination section, choose Nonlinear Method: Automatic (Newton),

5 Solution Store Right-click on Study 1: Nagumo Equation Solver Configurations Solution 1 (sol1) and select Other>Solution Store from the list. Click on Study 1: Nagumo Equation Solver Configurations Solution 1 (sol1) Solution Store 1 (sol2). Locate the Settings window for Solution Store. In the Label text field, type Nagumo Equation Solution. 7.1. Computation. Right-click on Study 1: Nagumo Equation and select Compute from the list. 8. Postprocessing and graphical output In this section we generate 2 Plot groups and a movie for visualizing our results. 8.1. Results for the Nagumo equation. Plot Group 1: Traveling Front, View 1 Click on Results 1D Plot Group 1. Hint: If 1D Plot Group 1 does not exists, right-click on Results and select 1D Plot Group from the list. Locate the Settings window for 1D Plot Group. In the Label text field, type Traveling Front, View 1. In the Data section select Data set Study 1: Nagumo Equation/Nagumo Equation Solution (sol2), Time selection Interpolated and Times (s) 0 20 40 60 80 100. In the Title section select Title type None. In the Plot Settings section select x-axis label x and y-axis label u(x,t). Click on Results Traveling Front, View 1 Line Graph 1. Hint: If Line Graph 1 does not exists, right-click on Results Traveling Front, View 1 and select Line Graph from the list. Locate the Settings window for Line Graph 1. In the Data section select Data set From parent. In the Selection section select Selection All domains. In the y-axis Data section select Expression u. In the x-axis Data section select Parameters Expression and Expression x. In the Coloring and Style section select Line Solid, Color Cycle and Width 2 in the Line style subsection. In the Legends section enable the Show legends checkbox, select Legends Manual and enter the legends t=0, t=20, t=40, t=60, t=80 and t=100. Plot Group 2: Traveling Front, View 2 Click on Results 1D Plot Group 2. Hint: If 1D Plot Group 2 does not exists, right-click on Results and select 1D Plot Group from the list. Locate the Settings window for 1D Plot Group. In the Label text field, type Traveling Front, View 2. In the Data section select Data set Study 1: Nagumo Equation/Nagumo Equation Solution (sol2) and Time selection All.

6 In the Title section select Title type None. In the Plot Settings section select x-axis label x and y-axis label t. Click on Results Traveling Front, View 2 Line Graph 1. Hint: If Line Graph 1 does not exists, right-click on Results Traveling Front, View 2 and select Line Graph from the list. Locate the Settings window for Line Graph 1. In the Data section select Data set From parent. In the Selection section select Selection All domains. In the y-axis Data section select Expression t. In the x-axis Data section select Parameter Expression and Expression x. Right-click on Results Traveling Front, View 2 Line Graph 1 and select Color Expression. Click on Results Traveling Front, View 2 Line Graph 1 Color Expression 1. Locate the Settings window for Color Expression. In the Expression section select Expression u. Plot Group 3: Plot for Animation Right-click on Results and select 1D Plot Group from the list. Locate the Settings window for 1D Plot Group 3. In the Label text field, type Plot Group for Animation. In the Data section select Data set Study 1: Nagumo Equation/Nagumo Equation Solution (sol2), Time selection First. In the Title section select Title type None. In the Plot Settings section select x-axis label x and y-axis label u(x,t). Click on Results Plot Group for Animation Line Graph 1. Hint: If Line Graph 1 does not exists, right-click on Results Plot Group for Animation and select Line Graph from the list. Locate the Settings window for Line Graph 1. In the Data section select Data set From parent. In the Selection section select Selection All domains. In the y-axis Data section select Expression u. In the x-axis Data section select Parameters Expression and Expression x. In the Coloring and Style section select Line Solid, Color Cycle and Width 2 in the Line style subsection. In the Legends section enable the Show legends checkbox, select Legends Automatic. Animation 1: Traveling Front, Animation Click on the Animation icon on top of the Settings window and select Player. Locate the Setting window for Animation 1. In the Label text field, type Traveling Front, Animation. In the Target section select File. In the Output section select Format GIF and in the Filename text field type NagumoEquation.gif.

7 In the Frames section enter Number of Frames 100. In the Layout section enable the checkbox for Include and then the checkboxes for Title, Legend and Axes and enter Font size 10. In the Advanced section disable the checkbox Synchronize scales between frames. Right-click Results Export Traveling Front, Animation and select Export.