Python scripting for CFD mesh adaptation with refine
Project description
Description
A python module for driving the CAD-to-Solution workflow based on refine with Engineering Sketch Pad.
Installation
If you will be creating custom drivers, controller, etc., it is recommended that you
clone the pyrefine repository and do a developer (in place) installation of pyrefine:
from the root directory do pip install -e .
. This allows you to edit pyrefine without
having to reinstall to get new changes.
Otherwise, you can use pip install pyrefine
.
Post processing scripts
While not required, for the main pyrefine package, some of the post processing and adaptation monitoring GUIs use plotly and the open-source version of dash.
To use these utilities, you'll need to pip install plotly dash
or conda install plotly dash
.
Documentation
Documentation is hosted using Github Pages
The pyrefine documentation is generated from the source code with Sphinx.
If you do not already have sphinx installed, you can use pip
or conda
to install it.
Once you have installed or added pyrefine to your PYTHONPATH, the documentation is built by running make html
in the docs directory.
The generated documentation will be in docs/build/html
.
Quick Start
After installation,
cd examples/onera_m6/geometry
./om6ste.sh
cd ../steady_sa
On the NASA K cluster, run:
python adapt.py
On pfe, set your group name in adapt_nas.py
then run the script:
python adapt_nas.py
In both cases the scripts are run from the login nodes and will launch pbs jobs for refine, fun3d, etc.
License Notices and Disclaimers
Notices: Copyright 2022 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. No copyright is claimed in the United States under Title 17, U.S. Code. All Other Rights Reserved.
Disclaimers No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL BE ERROR FREE, OR ANY WARRANTY THAT DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT SOFTWARE. THIS AGREEMENT DOES NOT, IN ANY MANNER, CONSTITUTE AN ENDORSEMENT BY GOVERNMENT AGENCY OR ANY PRIOR RECIPIENT OF ANY RESULTS, RESULTING DESIGNS, HARDWARE, SOFTWARE PRODUCTS OR ANY OTHER APPLICATIONS RESULTING FROM USE OF THE SUBJECT SOFTWARE. FURTHER, GOVERNMENT AGENCY DISCLAIMS ALL WARRANTIES AND LIABILITIES REGARDING THIRD-PARTY SOFTWARE, IF PRESENT IN THE ORIGINAL SOFTWARE, AND DISTRIBUTES IT "AS IS."
Waiver and Indemnity: RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS AGAINST THE UNITED STATES GOVERNMENT, ITS CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT. IF RECIPIENT'S USE OF THE SUBJECT SOFTWARE RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, EXPENSES OR LOSSES ARISING FROM SUCH USE, INCLUDING ANY DAMAGES FROM PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT'S USE OF THE SUBJECT SOFTWARE, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESS THE UNITED STATES GOVERNMENT, ITS CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY LAW. RECIPIENT'S SOLE REMEDY FOR ANY SUCH MATTER SHALL BE THE IMMEDIATE, UNILATERAL TERMINATION OF THIS AGREEMENT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyrefine-1.1.0.tar.gz
.
File metadata
- Download URL: pyrefine-1.1.0.tar.gz
- Upload date:
- Size: 55.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94dbe2425ef99102c38e9746ed8e6aed5a9b892215d86d6ceeb968e0c537f879 |
|
MD5 | 9fcec81a586952e632cc07915b788f96 |
|
BLAKE2b-256 | 430d078b224616c4e6baa3c37e841479c3afc089477a351b91f7ffe652c45c25 |