hyteg merge requests
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests
2023-07-17T14:34:59+02:00
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/627
Add capability to export FE functions for visualisation using the ADIOS2 library
2023-07-17T14:34:59+02:00
Marcus Mohr
Add capability to export FE functions for visualisation using the ADIOS2 library
This MR extends the dataexport capabilities of HyTeG by allowing to use the [ADIOS 2: The Adaptable Input Output (I/O) System version 2](https://csmd.ornl.gov/software/adios2) to write FE function data to file for visualisation with Para...
This MR extends the dataexport capabilities of HyTeG by allowing to use the [ADIOS 2: The Adaptable Input Output (I/O) System version 2](https://csmd.ornl.gov/software/adios2) to write FE function data to file for visualisation with ParaView.
The corrent implementation so far only supports functions of type
- P1Function + P1VectorFunction
- P2Function + P2VectorFunction
- P2P1TaylorHoodFunction
but is easily extensible by adding another specialised sub-writer class.
Extend capabilities for exporting data by adding support for ADIOS2
Marcus Mohr
Marcus Mohr
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/763
[Rebased !759] Radial shell output, radial shell IDs, duplicate DoF counting
2024-06-12T20:52:42+02:00
Nils Kohl
[Rebased !759] Radial shell output, radial shell IDs, duplicate DoF counting
Rebasing !759 once more.
Rebasing !759 once more.
Nils Kohl
Nils Kohl
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/757
Add full energy operator for TN-app
2024-06-13T10:13:17+02:00
Ponsuganth Ilangovan Ponkumar Ilango
Add full energy operator for TN-app
This is in relation to #243
Adds the full energy operator, currently kept under [`src/terraneo/operators`](https://i10git.cs.fau.de/hyteg/hyteg/-/tree/ponsuganth/tn-energy-operator/src/terraneo/operators). There are no tests currently ...
This is in relation to #243
Adds the full energy operator, currently kept under [`src/terraneo/operators`](https://i10git.cs.fau.de/hyteg/hyteg/-/tree/ponsuganth/tn-energy-operator/src/terraneo/operators). There are no tests currently but the operator is included in the solver test so that at least compilation is checked in the pipeline for now. Later we will add apps and tutorials using this.
Any suggestions on naming, namespaces and folder structure would be helpful.
Ponsuganth Ilangovan Ponkumar Ilango
Ponsuganth Ilangovan Ponkumar Ilango
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/756
Improve adaptive mesh refinement
2024-06-06T11:56:22+02:00
Benjamin Mann
Improve adaptive mesh refinement
Adds lots of features to AMR
Adds lots of features to AMR
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/746
Flexible Multigrid Solver Implementation
2024-05-21T17:18:48+02:00
Dinesh Parthasarathy
Flexible Multigrid Solver Implementation
- Add FlexibleMultigridSolver class that allows arbitrary cycling i.e. takes in a list of inputs for cycle structure, smoother types, relaxation weights, etc.
- Add SolverType enumeration for existing solvers/smoothers.
- Add template ar...
- Add FlexibleMultigridSolver class that allows arbitrary cycling i.e. takes in a list of inputs for cycle structure, smoother types, relaxation weights, etc.
- Add SolverType enumeration for existing solvers/smoothers.
- Add template argument in FullMultigridSolver class, to choose between a GeometricMultigridSolver or FlexibleMultigridSolver.
- Add an app '2024-parthasarathy-mgoptimisation' to demonstrate these flexible cycles.
Dinesh Parthasarathy
Dinesh Parthasarathy
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/745
Add abstract collective operation
2024-06-13T12:51:43+02:00
Dominik Thoennes
dominik.thoennes@fau.de
Add abstract collective operation
This new reduce function takes a std::function as an argument which is used to perform the reduce operation
It uses an allGather and local reduce on each process which is not be optimal in terms of performance.
So only use if non perform...
This new reduce function takes a std::function as an argument which is used to perform the reduce operation
It uses an allGather and local reduce on each process which is not be optimal in terms of performance.
So only use if non performance critical
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/732
TerraNeo - parameter handling, initialization, radial profiles
2024-04-18T12:24:53+02:00
Nils Kohl
TerraNeo - parameter handling, initialization, radial profiles
This MR is a continuation of !712 (and !707 which is a subset of !712).
The MR rebases and refactors what has been implemented in !712.
Introduces:
* parameter handling for the TN app
* radial profile computation
* IO for radial profil...
This MR is a continuation of !712 (and !707 which is a subset of !712).
The MR rebases and refactors what has been implemented in !712.
Introduces:
* parameter handling for the TN app
* radial profile computation
* IO for radial profiles
* temperature initialization functions
Major edits compared to !712:
* refactored temperature initialization functions (now just a "library" of functions that create lambdas for `interpolate()`)
* refactored the radial profile tool (much more efficient as all relevant values are computed in a single loop, [free your functions](https://github.com/CppCon/CppCon2017/blob/master/Presentations/Free%20Your%20Functions/Free%20Your%20Functions%20-%20Klaus%20Iglberger%20-%20CppCon%202017.pdf))
* refactored parameter IO (using json with better error handling, no more global variables, etc.)
Nils Kohl
Nils Kohl
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/727
[Rebased] Integrating Stokes solvers from branch burk/ELWMS.
2024-03-20T15:56:34+01:00
Nils Kohl
[Rebased] Integrating Stokes solvers from branch burk/ELWMS.
Rebased - see !718.
Rebased - see !718.
Nils Kohl
Nils Kohl
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/723
Generated Stokes operators with annulus blending
2024-03-15T14:49:45+01:00
Nils Kohl
Generated Stokes operators with annulus blending
Nils Kohl
Nils Kohl
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/716
GEMV
2024-03-21T21:55:14+01:00
Nils Kohl
GEMV
This MR implements the `gemv` as described in detail in #253.
It turns out that only minor changes have to applied to the `apply()` method to make this work (at least for the elementwise operators).
This MR implements the `gemv` as described in detail in #253.
It turns out that only minor changes have to applied to the `apply()` method to make this work (at least for the elementwise operators).
Nils Kohl
Nils Kohl
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/713
Extend geometry getter functions of Face and Cell class
2024-02-29T15:25:13+01:00
Marcus Mohr
Extend geometry getter functions of Face and Cell class
This MR adds three new functions:
- `Face::getIncircleRadius()`
- `Cell::getVolume()`
- `Cell::getInsphereRadius()`
We test these together with the existing `Face::getArea()` function in the new **Face+CellGeometryTest**.
This MR adds three new functions:
- `Face::getIncircleRadius()`
- `Cell::getVolume()`
- `Cell::getInsphereRadius()`
We test these together with the existing `Face::getArea()` function in the new **Face+CellGeometryTest**.
Marcus Mohr
Marcus Mohr
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/710
New generated Stokes operators
2024-03-06T08:34:39+01:00
Nils Kohl
New generated Stokes operators
See #246 for extended discussion
----
## Checklist:
- [x] `hyteg-operators` submodule needs to be updated as soon as https://i10git.cs.fau.de/hyteg/hyteg-operators/-/merge_requests/3 is merged
- [x] fix unused variable warnings in gen...
See #246 for extended discussion
----
## Checklist:
- [x] `hyteg-operators` submodule needs to be updated as soon as https://i10git.cs.fau.de/hyteg/hyteg-operators/-/merge_requests/3 is merged
- [x] fix unused variable warnings in generated operators
- [x] [move divergence, gradient, viscous directories out of the stokes directory and under `hyteg_operators_composites` instead](https://i10git.cs.fau.de/hyteg/hyteg/-/issues/246#note_28717)
- [x] fix issues for `real_t = float` (single precision builds)
- [x] blending operators test
----
## New module `hyteg_operators_composites`
This MR adds a new module `hyteg_operators_composites` that contains composite operators that are built from generated operators.
For now, three variants of Stokes operators have been added:
* P2P1StokesConstantOperator
* P2P1StokesEpsilonOperator
* P2P1StokesFullOperator
including the necessary viscous, divergence and gradient operators plus their `IcosahedralShellMap` blending versions.
The new module also comes with a short README.
## Testing
The MR extends and modifies
* P2P1ElementwiseStokesOperatorTest (Stokes constant, 2D + 3D)
* P2P1ElementwiseStokesOperatorTest (full Stokes w/ blending, 3D)
* ElementwiseEpsilonMinResConvergenceTest (Stokes epsilon, 2D + 3D)
* DivergenceOperatorTest (divergence, 2D + 3D)
* ViscousOperatorsTest (epsilon + full viscous block, 2D )
to test the new composites.
At least the 2D versions of all non-blending Stokes operators are now tested to some extent.
Nils Kohl
Nils Kohl
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/705
Add Stokes benchmarks for annulus and thick spherical shell settings
2024-02-22T13:47:51+01:00
Marcus Mohr
Add Stokes benchmarks for annulus and thick spherical shell settings
The benchmarks are based on and extend, w.r.t. boundary conditions, those described in [Analytical solutions for mantle flow in cylindrical and spherical shells](https://doi.org/10.5194/gmd-14-1899-2021) by Kramer et al.
Also noteworthy...
The benchmarks are based on and extend, w.r.t. boundary conditions, those described in [Analytical solutions for mantle flow in cylindrical and spherical shells](https://doi.org/10.5194/gmd-14-1899-2021) by Kramer et al.
Also noteworthy is the addition of a `PythonCallingWrapper` class.
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/676
Add continues outputting to LaTeX Table printer
2024-01-19T17:58:21+01:00
Michael Zikeli
Add continues outputting to LaTeX Table printer
The header `LaTeX/Table.hpp` provides the possibility to log rows of a tabulated `.dat` file that can later be used to, e.g. print graphs with pgfplots or also just tables in LaTeX.
This MR introduces a `writeUpdate` Method, that allows...
The header `LaTeX/Table.hpp` provides the possibility to log rows of a tabulated `.dat` file that can later be used to, e.g. print graphs with pgfplots or also just tables in LaTeX.
This MR introduces a `writeUpdate` Method, that allows for intermediate printing of the tables rows, that have not been printed yet, instead of printing the entire table all the time.
Michael Zikeli
Michael Zikeli
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/671
Enable float16 support for the P1 functionspace
2024-02-13T18:29:24+01:00
Michael Zikeli
Enable float16 support for the P1 functionspace
HyTeG was not able to work with float16 types. This merge request fixes this by adding the missing functionality for the P1 functionspace.
Necessary changes:
- [x] Template and explicit instantiate the following kernels that have been ...
HyTeG was not able to work with float16 types. This merge request fixes this by adding the missing functionality for the P1 functionspace.
Necessary changes:
- [x] Template and explicit instantiate the following kernels that have been generated at some point <add, apply, assign, communicate>. The other two kernel types <GS and SOR> have not been templated yet, since they are not used for the generated operators.
- [x] Set standard to C++23 if half precision support is enabled, otherwise some basic asserts like `is_floating_point` will fail.
- [x] Add test that check if all necessary functionality of float16 is working properly.
- [x] Update walberla to support float16 support.
- [x] Make sure that `WALBERLA_BUILD_WITH_HALF_PRECISION_SUPPORT` is enabled in the pipeline.
- [x] Make sure that the remote on the submodule walberla is the walberla repo and not a local fork.
- [x] Test the implementation and float16SupportTest for older compilers as well.
- [x] Some of the now templated kernels use copy by value, while reference is sufficient. Go back and add references.
- [x] Update the license in the modified files.
---
This merge request is dependent on the walberla merge request [!643](https://i10git.cs.fau.de/walberla/walberla/-/merge_requests/643).
Michael Zikeli
Michael Zikeli
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/659
Eigen sparse solver wrapper
2024-02-12T18:33:32+01:00
Nils Kohl
Eigen sparse solver wrapper
To be introduced after !658.
To be introduced after !658.
Nils Kohl
Nils Kohl
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/658
Eigen sparse matrix and vector assembly (proxies and helper) from HyTeG's FE operators functions.
2023-11-09T10:07:10+01:00
Nils Kohl
Eigen sparse matrix and vector assembly (proxies and helper) from HyTeG's FE operators functions.
See #233
Solver wrappers still left to be implemented.
See #233
Solver wrappers still left to be implemented.
Nils Kohl
Nils Kohl
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/657
Include multiple-precision floating-point library MPFR to HyTeG
2023-11-06T12:38:45+01:00
Michael Zikeli
Include multiple-precision floating-point library MPFR to HyTeG
MPFR is a C library for simulating arbitrary whole number precision for floating-point variables, hence enabling multiple-precision floating-point computations with correct rounding. The precision requested by the user is the number of b...
MPFR is a C library for simulating arbitrary whole number precision for floating-point variables, hence enabling multiple-precision floating-point computations with correct rounding. The precision requested by the user is the number of bits used to represent the mantissa.
For more information about MPFR compare: [mpfr.org](http://www.mpfr.org/)
For better usage in HyTeG, two external C++ wrapper libraries are included as well to enable e.g. operator overloading, automatic memory management, ...
One of these is using compile time definition of the variable precision. Compare the distributor website: [mpfr::real<>](http://chschneider.eu/programming/mpfr_real/)
The other one uses a runtime definition of the variable precision. Compare the distributor website: [mpfr::mpreal](http://www.holoborodko.com/pavel/mpfr/)
Dominik Thoennes
dominik.thoennes@fau.de
Dominik Thoennes
dominik.thoennes@fau.de
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/653
Particles
2023-10-19T12:20:24+02:00
Nils Kohl
Particles
This MR implements unresolved particles via the MESA-PD particle code generation framework.
The objective is the implementation of **fluid (<)-> particle** and later **particle <-> particle** interactions. Since the particles are assume...
This MR implements unresolved particles via the MESA-PD particle code generation framework.
The objective is the implementation of **fluid (<)-> particle** and later **particle <-> particle** interactions. Since the particles are assumed to be smaller than the elements, the module is referred to as _unresolved particles_. Thus fluid-particle interactions are not meant to be fully resolved but are modeled instead. At this point, only the one-way coupling (fluid acts on particles, not vice versa) is considered.
This is sufficient to, e.g., implement tracer particles.
Some notes:
* The implementation is already fully parallelized.
* There is a new tutorial (no. 12) including some images.
* The particle properties are subject to change and probably need to be discussed in the future. As of now, it is possible to flexibly add custom real and integer scalars to particles if needed.
* Direct application of velocity and force fields is possible. For tracer particles, the former is sufficient and can be interpreted as a extremely simplified form of FaxĂ©n's law (https://en.wikipedia.org/wiki/Fax%C3%A9n%27s_law). Force fields are also already supported, and naturally involve the particle mass for the computation of the resulting translational velocity.
* Theoretically, all features that are available in MESA-PD can be used. This includes, for instance, other integrators. However, using them involves generating the corresponding C++ code via MESA-PD through the python script in the `data/codegen/unresolved_particles/` directory.
* I had in mind that there has been a temporary(?) tracer particle implementation in the TerraNeo module. I cannot find it right now (could be on a branch) - and I might be wrong. If there is one, we should consider replacing it (and add required features to this new version - if possible).
* Blended domains are not yet supported.
Nils Kohl
Nils Kohl
https://i10git.cs.fau.de/hyteg/hyteg/-/merge_requests/642
First version of parallel PrimitiveStorage setup from file.
2023-10-23T13:54:07+02:00
Nils Kohl
First version of parallel PrimitiveStorage setup from file.
This MR realizes a two-step process. First, in a serial (offline) run, the SetupPrimitiveStorage is built and passed to a load balancer, followed by serialization to a file. During the actual, parallel run, the file is read via MPIIO suc...
This MR realizes a two-step process. First, in a serial (offline) run, the SetupPrimitiveStorage is built and passed to a load balancer, followed by serialization to a file. During the actual, parallel run, the file is read via MPIIO such that only the portion that is necessary has to be viewed by the respective process. From that binary string, the entire PrimitiveStorage is created in parallel.
There are numerous possible optimizations - most notably, it is not clear to me right now if the current approach of simply writing all neighbor primitives to file is preferable, or if alternatively, such data should be communicated after only reading the locally allocated primitives. Maybe it does not even make a difference at all. Also, this implementation has not been tested with large setups yet.
Nils Kohl
Nils Kohl