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 - andreascaglioni/ctg-wave: Continuous-Time Galerkin (CTG) space-time finite element method (FEM) for deterministic and stochastic wave equations.

BranchesTags
Open more actions menu

Latest commit

 

History

109 Commits
109 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
examples
examples
 
 
scripts
scripts
 
 
src/ctg
src/ctg
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CITATION.cff
CITATION.cff
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
environment.yml
environment.yml
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

CTG-wave: Continuous Time Galerkin for the (stochastic) wave equation

Continuous-Time Galerkin (CTG) space-time finite element method (FEM) for deterministic and stochastic wave equations.

Space-time slabs Solution over space–time
Space‑time slabs Solution over space–time

Table of Contents

  • Features
  • QuickStart
  • Installation
  • Usage
  • Contributing
  • License

Features

  • Continuous Time Galerkin (CTG) finite element methods for wave equations
  • Space-time finite element discretization
  • Parametric coefficient handling for uncertainty quantification
  • Brownian motion coefficient implementation
  • Efficient sparse matrix assembly for space-time operators
  • Multiple examples and convergence studies
  • Support for various boundary and initial conditions
  • Post-processing and error analysis tools

QuickStart

For those who have no time to lose:

# create and activate the conda environment
mamba env create -f environment.yml
conda activate ctg-wave

# install
pip install -e .

# Run default example (uses data in ctg/presets/swe.yaml)
ctg

# Or run with new custom data:
ctg --config-path examples/data_examples/data_swe.yaml

# run tests
pytest -q

The command produces results under results/<timestamp>/ containing:

  • meta.json: Simulation metadata and simple metrics on the output
  • config_used.yaml: A copy of the configuration file containing problem data and solver parameters
  • numerical outputs / plots

Detailed Installation

  1. Clone the repository
git clone [email protected]:andreascaglioni/CTG_wave.git
  1. Install the dependencies with Mamba
mamba env create -f environment.yml
conda activate ctg-wave

Note: This package has only been tested with dolfinx v0.9.0.

  1. Install the package + hooks
pip install -e .
pre-commit install
  1. Run the CLI script with default parameters
python -m ctg.cli
  1. Run Pytest tests (options set in pyproject.toml)
pytest

Usage

The program can be run from the command line with a YAML file containing the physics and numerics data:

ctg --config-path [data/your_config.yaml]

If no YAML file is provided, the program will use a default file ctg/default_data/data_swe.yaml.

Give a look to it to understand how it is structured. Note that in the same directory there is a file data_swe_functions.py containing the callables referenced in data_swe.yaml (e.g., initial and boundary data functions).

More examples are available in the examples/ directory:

  • examples/SWE_CTG_example.py - Basic parametric wave equation example, similar to the CLI script
  • examples/WE_CTG_conv_dt.py - Time step convergence study
  • examples/SWE_example_ensamble.py - Ensemble simulation example

Documentation

The documentation contains detailed API reference and mathematical background. Find it at https://andreascaglioni.github.io/ctg-wave/

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Andrea Scaglioni - Get in touch on my website

About

Continuous-Time Galerkin (CTG) space-time finite element method (FEM) for deterministic and stochastic wave equations.

Topics

continuous-time-galerkinctgdolfinxfenicsxfinite-elements-methodspace-time-femstochastic-wave-equationwavewave-equation

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

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.