2021-11-18 22:00:30 +05:00
.. image :: https://circleci.com/gh/L-Nafaryus/anisotropy/tree/devel.svg?style=shield&circle-token=423bc964a997ded671ebd4ceacc25f9967acdffa
2021-11-18 11:52:35 +05:00
:target: https://circleci.com/gh/L-Nafaryus/anisotropy/tree/devel
2021-11-18 11:12:59 +05:00
2021-08-10 00:12:57 +05:00
anisotropy
2021-08-25 21:48:02 +05:00
==========
2021-07-07 23:09:25 +05:00
2021-09-01 21:36:46 +05:00
*anisotropy* is a `` Python `` package that is the result of science-research work
2021-09-01 21:26:17 +05:00
on the anisotropy of permeability in the periodic porous media.
A project uses own wrappers around external applications
for constructing a shapes and meshes (`` Salome `` ) and computing a flow (`` OpenFOAM `` ).
2021-09-01 20:06:47 +05:00
.. figure :: docs/source/static/simple.png
:align: center
:alt:
.. figure :: static/simple.png
:align: center
:alt:
2021-09-01 21:36:46 +05:00
.. contents :: README contents
2021-09-01 20:06:47 +05:00
Dependencies
2021-09-01 21:36:46 +05:00
============
2021-07-07 23:09:25 +05:00
2021-09-01 20:06:47 +05:00
.. csv-table ::
2021-08-25 21:48:02 +05:00
:header: "Software", "Used version", "Recommended version"
2021-07-07 23:09:25 +05:00
2021-09-01 20:06:47 +05:00
"`Python <https://www.python.org> `_ ", "3.9.6", ">= 3.8"
"`Salome <https://www.salome-platform.org> `_ ", "9.7.0", ">= 9.6.0"
"`OpenFOAM <https://www.openfoam.com> `_ ", "v2012", ""
2021-08-25 21:48:02 +05:00
2021-07-07 23:09:25 +05:00
2021-09-01 21:36:46 +05:00
.. Installation
2021-09-01 20:06:47 +05:00
2021-12-02 18:14:20 +05:00
.. code-block :: bash
$ git clone https://github.com/L-Nafaryus/anisotropy.git
$ cd anisotropy
$ conda env create
$ conda activate anisotropy
$ poetry install
$ anisotropy --help
2021-09-01 20:06:47 +05:00
Getting Started
2021-09-01 21:36:46 +05:00
===============
2021-09-01 20:06:47 +05:00
Initializing a new anisotropy project
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To create a new anisotropy project, you'll use the `` anisotropy init `` command.
`` anisotropy init `` is a one-time command you use during the initial setup of a new project.
Example:
.. code-block :: bash
$ mkdir ~/aproject
$ cd ~/aproject
$ anisotropy init
Executing this command will create a new `` anisotropy.db `` , `` anisotropy.toml `` files in your
current working directory. This will also create `` build `` and `` logs `` directories for output files.
Database `` anisotropy.db `` is used for storing current values and results.
With `` anisotropy.toml `` you can configure all an initial values.
Computing
~~~~~~~~~
To start a computation, you'll use the `` anisotropy compute `` command. Using flag `` --stage `` you can
control what you need to compute (mesh or flow). Using flag `` --param `` you can specify which
structure/direction/theta you need to compute.
Example:
.. code-block :: bash
$ anisotropy compute --stage mesh --param type=simple --param direction="[1.0, 0.0, 0.0]" --param theta=0.01
.. attention ::
* You can't compute a flow without mesh (if you didn't it before succesfully).
2021-09-01 21:26:17 +05:00
* `` type `` , `` direction `` and `` theta `` are control parameters. If you aren't specifying it than default range of values will be used from `` anisotropy.toml `` .
2021-09-01 20:06:47 +05:00
Post-processing
~~~~~~~~~~~~~~~
To use post-processing tools, you'll use the `` anisotropy postprocessing `` command.
Example:
.. code-block :: bash
$ anisotropy postprocessing permeability
Additional help
~~~~~~~~~~~~~~~
You always can use `` --help `` flag with any of `` anistropy `` command to get more information.
2021-07-07 23:09:25 +05:00
License
2021-09-01 21:36:46 +05:00
=======
2021-07-07 23:09:25 +05:00
GNU GPLv3
2021-08-25 21:48:02 +05:00
For more information see `` LICENSE `` .