GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mesh-adaptation/animate: Anisotropic mesh adaptation toolkit for Firedrake

BranchesTags
Open more actions menu

Latest commit

 

History

229 Commits
229 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
adapt_common @ d2ec0cc
adapt_common @ d2ec0cc
 
 
animate
animate
 
 
demos
demos
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
CITATION.cff
CITATION.cff
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 
requirements-build.txt
requirements-build.txt
 
 
setup.py
setup.py
 
 

Repository files navigation

Animate

Anisotropic mesh adaptation toolkit for Firedrake

GitHub top language GitHub repo size Slack

Animate is a mesh adaptation toolkit enabling users to anisotropically adapt a mesh based on a Riemannian metric framework with control over the shape, orientation and size of the resulting mesh elements. Animate is built for use with Firedrake and strongly leverages PETSc DMPlex functionality. The implementation of metric-based mesh adaptation used in PETSc assumes that the metric is piece-wise linear and continuous, with its degrees of freedom at the mesh vertices.

For more information on Firedrake, please see: Firedrake Website. For more information on PETSc, please see: PETSc metric-based mesh adaptation

Installation

For installation instructions, we refer to the Wiki page.

Example code snippet

Animate centres around the RiemannianMetric object that it introduces. For a quick illustration of how to use Animate to adapt a mesh with respect to the Hessian metric of a scalar field f, see below:

from firedrake import *
from animate import *

mesh = UnitSquareMesh(10, 10)
P1 = FunctionSpace(mesh, "CG", 1)
f = Function(P1)
# [Set values of field]

P1_ten = TensorFunctionSpace(mesh, "CG", 1)
metric = RiemannianMetric(P1_ten)
metric_parameters = {
    "dm_plex_metric_target_complexity": 200,
    # ...
}
metric.set_parameters(metric_parameters)
metric.compute_hessian(f)
metric.normalise()

adapted_mesh = adapt(mesh, metric)

About

Anisotropic mesh adaptation toolkit for Firedrake

Resources

Readme
MIT license
Activity
Custom properties

Stars

12 stars

Watchers

4 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.