A simple FEM library
- Rectangle Serendipity
- Gmsh>=4.12.0
- tomlplusplus
- Eigen
- VTK
- Configure the project with CMake
cmake -B build -DCMAKE_BUILD_TYPE=Release- Build the project
cmake --build build -j- Or just build the
PyWorkerlibrary
cmake --build build -j --target PyWorker- Go to the python directory
cd python- Before run the python script, you may need to modify the
libraryWrapper.py. For example, if you built the library inpython/library/builddirectory and decide to run python script inpythondirectory, you should modify thelibraryWrapper.pyas follows:
class PyWorkerWrapper:
def __init__(self, libName: str = "PythonWorker", libDirectory: str = "./lib"):
# Change the libDirectory to your library directory
libDirectory = "./library/build"
# Get system name
...- If you follow the above steps, you can create a soft link to the library directory:
ln -s ../build/work lib- Check all the python dependencies listed in the
requirements.txtare installed - Now, run the python script
python Question2.py| COMSOL | |
| This work | |