GithubHelp home page GithubHelp logo

chlnddev / fmesh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from krober10nd/fmesh

0.0 1.0 0.0 670 KB

A mesh generator based on the DistMesh algorithm written in modern Fortran.

License: GNU General Public License v3.0

Fortran 100.00%

fmesh's Introduction

FMesh

A 2D/3D, an-/isotropic triangular/tetrahedral mesh generator based on the DistMesh algorithm in modern Fortran


(NOTE: this is a work in progress!).

The software will need:

  1. GNU compiler (e.g., gfortran and gcc)
  2. Qhull (static re-entrant libraries)
  3. Python3+ (for visualization of mesh and for development of mesh size functions)

To install the software:

  1. Enter into the work directory.
  2. In the makefile, change the path to the include directory (CPP) and library directory (LDFLAGS).
  3. In make.inc, change the type of build configuration (i.e., dbg, optimised, etc.)
  4. Run make and the generated binary should be installed in work/bin.

To use the software:

It requires a Planar Straight Line graph (in 2D) or PSLG that describes the boundary of the domain. % The PSLG is a text file called "PSLG.txt" in the working directory in the following format:

5 2 ! # of points and dimension
-1.0 1.0 ! x and y coordinates of each point
1.0 1.0
1.0 -1.0
-1.0 -1.0
-1.0 1.0

It requires the user define their own mesh size function in the module src/YourMeshSizeFunction.F90. The mesh size function takes a vector of coordinates and returns a desired element size and orientation (i.e., anisotropic) In the simplest case, you can simply write a function to return only a element size (isotropic).

fmesh's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.