dumux merge requestshttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests2021-09-02T21:40:02Zhttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2758Feature/python scipts formatting linting2021-09-02T21:40:02ZTimo Kochtimokoch@math.uio.noFeature/python scipts formatting lintingFixes #1050
TODO
* [x] Make all the linters happy (`pylint` is the most difficult but has good suggestions)
* [x] Make sure the scripts are still working (some changes are at least somewhat non-trivial)
- [x] `bin/testing` (can be...Fixes #1050
TODO
* [x] Make all the linters happy (`pylint` is the most difficult but has good suggestions)
* [x] Make sure the scripts are still working (some changes are at least somewhat non-trivial)
- [x] `bin/testing` (can be decently tested by running CI with some fake change)
- [x] `bin/postprocessing` -> manual testing (partially tested)
- [x] `extract_module` -> manual testing
- [x] `create_docker` -> manual testing (partially tested)3.5Dennis GläserDennis Gläserhttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2737[disc] New update functions for GridGeometry classes2021-08-15T18:53:20ZMartin Schneider[disc] New update functions for GridGeometry classesTodos:
- [x] think about how md facet updates (see comment below)
- [x] Update md files of examples after changes
- [x] ~~Fix MultiDomainGG~~ -> seperate MR
Closes #1056Todos:
- [x] think about how md facet updates (see comment below)
- [x] Update md files of examples after changes
- [x] ~~Fix MultiDomainGG~~ -> seperate MR
Closes #10563.5Timo Kochtimokoch@math.uio.noTimo Kochtimokoch@math.uio.nohttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2736Feature/simplify local view2021-08-20T16:04:14ZNed ColtmanFeature/simplify local viewFixes #1060
- [x] Make sure I'm even doing this correctly
- [x] Change bind interface for each discretization's fvelementgeometry.hh
- [x] Change bind interface for each ELemVolVars
- [x] Change bind interface for each FluxCache
- [x] ...Fixes #1060
- [x] Make sure I'm even doing this correctly
- [x] Change bind interface for each discretization's fvelementgeometry.hh
- [x] Change bind interface for each ELemVolVars
- [x] Change bind interface for each FluxCache
- [x] Go through all dumux/ headers and replace useage
- [x] Go through all test/ headers and replace useage
- [x] Add a note to the change log
- [x] Perform Benchmark to evaluate cost localview call within or outside of a element loop
- [x] Make changes according to the Benchmark results:
> Policy here:
> 1\.) If `bind(element)` is called within an `element` loop, call `auto fvGeometry = localView(gridGeometry)` before the loop.
> 2\.) If `bind(element)` is only called once (e.g. in certain functions), use the convenience syntax.3.5Timo Kochtimokoch@math.uio.noTimo Kochtimokoch@math.uio.nohttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2735[parameters] Compile as separate library2021-07-29T03:52:47ZTimo Kochtimokoch@math.uio.no[parameters] Compile as separate library3.5Timo Kochtimokoch@math.uio.noTimo Kochtimokoch@math.uio.nohttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2724[disc] Add toString function for discretization method2021-07-22T11:00:06ZTimo Kochtimokoch@math.uio.no[disc] Add toString function for discretization methodThis came up for the Python bindings
!2681 but it also useful otherwise I think.This came up for the Python bindings
!2681 but it also useful otherwise I think.3.5Dennis GläserDennis Gläserhttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2722[geomtry][distance] Add distancePointTriangle2021-07-29T15:40:18ZKilian Weishaupt[geomtry][distance] Add distancePointTriangle3.5Timo Kochtimokoch@math.uio.noTimo Kochtimokoch@math.uio.nohttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2719[components] Remove unused bool argument from gasViscosity2021-07-20T16:19:57ZKilian Weishaupt[components] Remove unused bool argument from gasViscosity3.5Timo Kochtimokoch@math.uio.noTimo Kochtimokoch@math.uio.nohttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2708Add new class for calculating wall distance2021-11-09T09:47:38ZKilian WeishauptAdd new class for calculating wall distance* Add geometry utilities for constructing spheres / bounding spheres / circumspheres (these are acutally not used by the wall distance but might be useful in the future now that they are implemented.)
* Add `closestEntity` and `distance`...* Add geometry utilities for constructing spheres / bounding spheres / circumspheres (these are acutally not used by the wall distance but might be useful in the future now that they are implemented.)
* Add `closestEntity` and `distance` queries for point and AABB trees
* Add `DistanceField` a function-like wrapper around a set of geometries to make distance queries at a given sample point
* Add `WallDistance` a class that evaluates discrete distance-to-the-mesh-boundary field at either vertex or element centers
__TODO__
- [x] better test
- [x] Maybe use in existing RANS model
- [x] fix check for UG or ALU in test
- [x] check parallelism? maybe throw
![Screenshot_2021-08-26_at_16.06.13](/uploads/66e7098269e3030b6edd0dcff95c0364/Screenshot_2021-08-26_at_16.06.13.png)3.5Timo Kochtimokoch@math.uio.noTimo Kochtimokoch@math.uio.nohttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2683[pnm][util] Add convenience python script to run poreSpy2022-04-18T19:46:40ZKilian Weishaupt[pnm][util] Add convenience python script to run poreSpy3.5Kilian WeishauptKilian Weishaupthttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2681Feature/python main file2021-07-28T18:15:52ZKilian WeishauptFeature/python main fileAdds more Python bindings to the `dumux` Python module. In particular the property system, parameters (from cmd line, file, or dictionary), the assembler, problem & spatial parameters are wrapped. This allows running an entire simulation...Adds more Python bindings to the `dumux` Python module. In particular the property system, parameters (from cmd line, file, or dictionary), the assembler, problem & spatial parameters are wrapped. This allows running an entire simulation (using the dune istl solver bindings directly).
Known issues/unsolved challenges:
- Currently the only way to create problem/spatial params is by writing these classes in Python. This offers full runtime flexibility but also has a strong runtime penalty. Other methods to construct more efficient problems/spatialparams need to be investigated in the future.
- The property system mechanism may not be able to fully capture circular dependencies. For example the problem depends on the coupling manager type but the couplingmanager also needs the problem type. How do I inject that knowledge to the problem?
__TODO__
- [x] Add spatialParams similar to problem
- [x] Add proper test
- [x] Make CI work (test & lint Python)
- [x] Fix issue with Parameters (`-DBUILD_SHARED_LIBS=TRUE`, i.e. using shared libraries instead of static libraries is necessary with Python code. Linking has to be done at runtime so that the parameters singleton is correctly linked in all generated libraries. This worked on macOS which builds shared libs by default but for Linux we need to explicitly enable it, see dumux-docker-ci!11)3.5Timo Kochtimokoch@math.uio.noTimo Kochtimokoch@math.uio.nohttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2637[md][box] Internal Dirichlet2021-05-22T10:17:38ZMartin Schneider[md][box] Internal Dirichlet* Set off-diagonal matrix blocks to zero if internal Dirichlet is set
* use correct problem() function in md framework* Set off-diagonal matrix blocks to zero if internal Dirichlet is set
* use correct problem() function in md framework3.5Martin SchneiderMartin Schneiderhttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/2415Improve brine fluidsystem2022-03-30T22:04:42ZTheresa SchollenbergerImprove brine fluidsystemCloses #970Closes #9703.5Johannes HommelJohannes Hommelhttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/1822Feature/box forchheimer2021-07-23T13:53:51ZMartin SchneiderFeature/box forchheimerThe following points needs to be discussed
* [x] Code duplication for velocity calculation (same in darcyslaw and forchheimerslaw)
* [x] The upwind scheme is currently implemented in forchheimerslaw, this should be avoided by changing t...The following points needs to be discussed
* [x] Code duplication for velocity calculation (same in darcyslaw and forchheimerslaw)
* [x] The upwind scheme is currently implemented in forchheimerslaw, this should be avoided by changing the existing `upwindscheme.hh` class3.5Dennis GläserDennis Gläserhttps://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/merge_requests/1781Add script to extract CO2 tables from NIST website2022-03-30T22:03:58ZMartin UtzAdd script to extract CO2 tables from NIST websiteThis MR provides a python script, which can create CO2 tables, like the one used in the CO2 test. The tables contain density and enthalpy values for a specified temperature and pressure range. The CO2 tables are created by the help of a ...This MR provides a python script, which can create CO2 tables, like the one used in the CO2 test. The tables contain density and enthalpy values for a specified temperature and pressure range. The CO2 tables are created by the help of a website (https://webbook.nist.gov/chemistry/fluid), which calculate the needed values. The query for the values is automated by the python script, which also does the formatting of the received values.
The former way to generate the CO2 table was a Fortran script, which can't be published due to copy right issues. Therefore it was decided in #690 to use the NIST website and a python script to generate the new CO2 tables. Both approaches use the formula of Span and Wagner to calculate the values and produce the same result (within a acceptable tolerance). The new approach has the advantage, that we can publish the script.3.5Timo Kochtimokoch@math.uio.noTimo Kochtimokoch@math.uio.no