The Precice Environment Constructor is a tool designed to simplify the setup and configuration of the preCICE environment for simulation coupling. This repository provides scripts and instructions to streamline the installation process, ensuring a smooth experience for users.
The source code for CalculiX 2.20 is included in this repository. This is due to internet access restrictions from the official site and the unavailability of repositories hosting the 2.20 version of CalculiX. Please ensure compliance with the licensing terms of CalculiX when using or distributing this code.
- Preconfigured setup for preCICE and its adapters.
- Support for OpenFOAM, DOLFIN, and CalculiX integration.
- Automated build of adapters for preCICE.
- Includes additional tools like ParaView, nano, and btop for enhanced usability.
- YAML-based configuration for constructing custom environments.
Before using this tool, ensure you have the following installed:
- Git: Version control system.
- Conda: Package and environment manager.
- constructor: Tool for creating custom conda-based installers.
-
Clone the repository:
git clone https://github.com/your-username/Precice-Env-Constructor.git cd Precice-Env-Constructor -
Run the setup script:
./run_precice_installer.sh
-
Follow the on-screen instructions to complete the installation.
To create your own custom construct, follow these steps:
-
Modify the
construct.yamlfile:- Open the
construct.yamlfile located in the root directory. - Update the
name,version, andchannelsfields as needed. - Add or remove dependencies under the
specssection to customize the environment. - Adapt the post and pre install scripts.
- Open the
-
Build the installer (for example for linux x64 machine):
./Constructor/prepare_precice_installer.sh
-
Distribute the installer:
- The generated installer will be located in the
constructordirectory. It will be cut in 90MB files. - Share the installer and the
run_precice_installerwith your team or use it for deployment.
- The generated installer will be located in the
For more details on customizing the construct.yaml file, refer to the constructor documentation.
After installation, you can use the environment to leverage preCICE and its integrated tools for simulation coupling. The setup supports various solvers and adapters, enabling seamless workflows for your simulation needs. Simply activate the environment and start using the preconfigured tools to streamline your simulation processes.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a detailed description.