Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Computational-Rheology/MMS_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyMMSFOAM is a python module for generating manufactured solutions for verification of solvers implemented in OpenFOAM®.

The utility was developed based on OpenFOAM® V2106 and resorts to the coded framework to implement boundaryConditions, functionObjects and fvOptions.

pyMMSFOAM is based on Sympy and is composed of different submodules, the most important being:

  • Symbols:
    • Represents the symbols that the user is allowed to use for symbolic differentiation. Currently it only allows the usage of symbols representing the coordinates of Cartesian reference frame, i.e., $x$ , $y$, and $z$.
  • Differentiation operators:
    • Has functions to compute the symbolic differentiation operators tipically used in the finite volume method:
      • Gradient, $\nabla$,
      • Divergence, $\nabla \cdot$,
      • Laplacian, $\nabla \left(\Gamma \nabla \cdot \right)$
      • If required other operators can be easily implemented in pyMMSFOAM.
  • Printing utilities:
    • Is responsible for printing the source terms resulting from the method of manufactured solutions, suitable boundary conditions (fixed value or fixed gradient) as well as functionObjects for computing several common error norms ( $L^1$, $L^2$, $L^\infty$).
    • The output should be copied into the respective case study locations.

This repository is associated to a paper published in the OpenFOAM Journal [1], which describes the case studies named laplacianFoam.py and simpleFoam.py, and should provide suitable tutorials for using the python utility.

The authors welcome suggestions for improvements as well as manufactured solutions for creating new case study suits.

References

[1] - B. Ramoa et al. "A semi-automatic approach based on the method of manufactured solutions to assess the convergence order in OpenFOAM" , OpenFOAM Journal, , 2022, .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages