Skip to content
/ CD_Solver Public

This will be a object-oriented PDE-solver, that allows one to solve a coupled nonlinear cross-diffusion system using the python wrapper for ngsolve (https://ngsolve.org/).

Notifications You must be signed in to change notification settings

vjra/CD_Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

CD_Solver

This will be a object-oriented PDE-solver, that allows one to solve a coupled nonlinear cross-diffusion system using the finite element software package ngsolve (https://ngsolve.org/). Using implicit Euler in time, finite element in space and Newton to overcoming nonlinearities.

Installation

$ git clone https://github.com/vjra/CD_Solver.git
$ cd CD_package

Introduction

Generates a experiment object to solve parabolic-parabolic system for $u=(\rho,c) \in \R^2$

$$u_t = \operatorname{div}(A(u) \nabla u) + f(u)$$

for t > 0 on a bounded domain Omega, with source term $f(u) = (0,-u[1]+u[0]^alpha)$ and parameters with $eps >= 0$ and $alpha >0$.

The experiment object builds on the ngsolve library and contains:

  • the geometry,
  • the mesh,
  • the weak formulation of the problem,
  • Test and Trial functions,
  • simulation parameters,
  • finite element space,
  • initial data for the problem,
  • solution of the computation as a ngsolve gridfunction.

Usage

See solve_example.py and plot_example.py for examples to solve and plot an experiment.

About

This will be a object-oriented PDE-solver, that allows one to solve a coupled nonlinear cross-diffusion system using the python wrapper for ngsolve (https://ngsolve.org/).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages