FE code that discretizes a two-dimensional Poisson’s equation using B-Spline basis functions.
- Recursively clone this project to your machine:
git clone --recursive https://github.com/huaminghuangtw/B-Spline-FEM-Computation.git
- Use Cmake to build/generate project files corresponding to your preferred complier/IDE, e.g., Visual Studio 2019
(Remember to tick thePYBIND11_INSTALL
box, otherwise there will beImportError: DLL not found
message) - Open project solution file (in this case
splinecomputation.sln
) - Go to Solution Explorer > Right-click on
INSTALL
> Selectbuild
- A new folder called
install
will be generated under your build folder - After this step you can go to the
install
folder and run the splinekernel testrunner or any python scripts
In the install folder, you could play around with:
-
splinekernel testrunner
-
Python scripts
python plotBSplineBasis.py
python plotBSplineCurve.py
python plotBSplineBasis2D.py
python plotBSplineSurface.py
python laplaceProblem.py
If you have any question or suggestion, feel free to contact me at huaming.huang.tw@gmail.com. Contributions are also welcomed. Please open a pull-request or an issue in this repository.