FEniCS Project

Web Name: FEniCS Project

WebSite: http://fenicsproject.org

ID:74261

Keywords:

FEniCS,Project,

Description:

The FEniCS computing platformFEniCS is a popular open-source (LGPLv3) computing platform for solving partial differential equations (PDEs). FEniCS enables users to quickly translate scientific models into efficient finite element code. With the high-level Python and C++ interfaces to FEniCS, it is easy to get started, but FEniCS offers also powerful capabilities for more experienced programmers. FEniCS runs on a multitude of platforms ranging from laptops to high-performance clusters.Solving a PDE in FEniCSAs an illustration of how to program a simple PDE model with FEniCS, consider the Stokes equations in variational form:$$\int_{\Omega} \mathrm{grad} \, u : \mathrm{grad} \, v \,\mathrm{d}x \, \int_{\Omega} p \, \mathrm{div} \, v \,\mathrm{d}x +\int_{\Omega} \mathrm{div} \, u \, q \,\mathrm{d}x =\int_{\Omega} f \cdot v \,\mathrm{d}x.$$The variational problem is easily transcribed into Python using mathematical operators in FEniCS: # Define function spaceP2 = VectorElement('P', tetrahedron, 2)P1 = FiniteElement('P', tetrahedron, 1)TH = P2 * P1W = FunctionSpace(mesh, TH)# Define variational problem(u, p) = TrialFunctions(W)(v, q) = TestFunctions(W)a = inner(grad(u), grad(v))*dx - p*div(v)*dx + div(u)*q*dxL = dot(f, v)*dx# Compute solutionw = Function(W)solve(a == L, w, [bc1, bc0])The above code snippet also shows how to define a suitable finite element function space, using continuous piecewise quadratic vector-valued functions for the velocity and continuous piecewise linear functions for the pressure (Taylor-Hood). The computational domain and mesh are also easily created with FEniCS, here defined by three spheres immersed in a 3D channel. # Define domainh = 0.25r = 0.3*hbox = Box(Point(0, 0, 0), Point(1, h, h))s0 = Sphere(Point(0.3, 0.50*h, 0.50*h), r)s1 = Sphere(Point(0.5, 0.65*h, 0.65*h), r)s2 = Sphere(Point(0.7, 0.35*h, 0.35*h), r)domain = box - s0 - s1 - s2# Generate meshmesh = generate_mesh(domain, 32)Each component of the FEniCS platform has been fundamentally designed for parallel processing. Executing a FEniCS script in parallel is as simple as calling mpirun -np 64 python script.py. This framework allows for rapid prototyping of finite element formulations and solvers on laptops and workstations, and the same code may then be deployed on large high-performance computers.The figure shows the von Mises stresses computed from a nonlinear thermomechanical FEniCS simulation of a turbocharger. The finite element system of linear equations comprises more than 3.3 x 109 degrees of freedom. The solver was initially developed on a desktop computer for a small scale problem, and the same code was then deployed on a supercomputer using over 24000 parallel processes.Installation and documentationFEniCS is available for a range of platforms (Linux, Mac, Windows). Choose between Docker containers, binary packages and source code. Visit our installation page to get the latest version of FEniCS. FEniCS comes with extensive documentation and numerous examples. A good starting point is the FEniCS Tutorial.AboutThe FEniCS Project is developed and maintained as a freely available, open-source project by a global community of scientists and software developers. The project is developed by the FEniCS Community, is governed by the FEniCS Steering Council and is overseen by the FEniCS Advisory Board.FEniCS is a NumFOCUS fiscally supported project. If you like FEniCS and want to support our mission to produce the best possible platform for open-source computing, consider making a donation to our project.Tweet

TAGS:FEniCS Project 

<<< Thank you for your visit >>>

Websites to related :
Instituto de Biologia | Institut

  O Instituto O Instituto de Biologia daUnicamp é uma das três primeiras unidades de ensino, pesquisa e extensão criadas na Universidade, e desde o

Home | Instituut voor Natuur- en

  Vul het formulier in en duid aan welke INBO nieuwsbrief of nieuwsbrieven u wenst te ontvangen. Na het verzenden van dit formulier ontvangt u een mail

BMC Ecology | Home page

  We are pleased to announce that BMC Ecology and BMC Evolutionary Biology will be merged into one journal and re-launched as BMC Ecology and Evolution

Ecological Society of America Pu

  issues in ecology other publicationsThe Mission of the Publications of the Ecological Society of America is to: ? Publish and make broadly available t

Public Science Lab Ecology, Evo

  Public Science Labnlmccoy2020-05-18T13:25:21-04:00 What we doWe are a group of scholars from diverse disciplines who work to make new discoveries abo

PAESTA

  Join PAESTA!We are the Pennsylvania affiliate of the National Earth Science Teachers Association (NESTA), whose mission is to facilitate and advance e

Home - Wolverhampton Grammar Sch

  Meet the Friends of Wolverhampton Grammar School Education as individual as your child Founded in 1512, Wolverhampton Grammar School is an award-winn

Mathematics and Statistics

  Get free math tutoring online with the WSU Math Lab! Our Online Math Lab has "drop in" first-come-first-served tutoring on Zoom or if you just want so

Science Fair Projects, Ideas,

  Do you have a Science Fair Project of your own that you would like to see added to our listings? If so, please submit it! One of our staff members wil

eDAQ sensor recording systems fo

  eDAQ sensor recording systems for chemistry and chemical research and teaching applications - eDAQ ** August 2020: During these difficult times with t

ads

Hot Websites