Skip to content

SZWHTQ/myFEM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myFEM

A simple FEM library

Element Implementation

  • Rectangle Serendipity

Depends on

  1. Gmsh>=4.12.0
  2. tomlplusplus
  3. Eigen
  4. VTK

Build

  1. Configure the project with CMake
cmake -B build -DCMAKE_BUILD_TYPE=Release
  1. Build the project
cmake --build build -j
  • Or just build the PyWorker library
cmake --build build -j --target PyWorker
  1. Go to the python directory
cd python
  1. Before run the python script, you may need to modify the libraryWrapper.py. For example, if you built the library in python/library/build directory and decide to run python script in python directory, you should modify the libraryWrapper.py as 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
  1. Check all the python dependencies listed in the requirements.txt are installed
  2. Now, run the python script
python Question2.py

Result

Question 2

COMSOL

Singleton

COMSOL COMSOL
This work This Project

About

A simple FEM library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages