fluidfoam.meshdesign

Compute mesh grading and cell sizes

This module provides functions to design OpenFoam mesh using blockMesh:

fluidfoam.meshdesign.getgz(h, dz1, N)[source]

Given a domain size h, a first grid size dz1 and a number of points N this function returns the common ratio, the grading gz to enter in blockMesk and the z and dz vectors. Usage: z,dz,gz=getgz(h,dz1,N)

fluidfoam.meshdesign.getdzs(h, gz, N)[source]

Given a domain size h, a grading factor gz and a number of points N this function returns the grid size of the first and the last points. Usage: dz1,dzN=getdzs(h,gz,N)

Functions

getdzs(h, gz, N)

Given a domain size h, a grading factor gz and a number of points N this function returns the grid size of the first and the last points.

getgz(h, dz1, N)

Given a domain size h, a first grid size dz1 and a number of points N this function returns the common ratio, the grading gz to enter in blockMesk and the z and dz vectors.