DomainCreation

class pvade.geometry.template.TemplateDomainCreation.TemplateDomainCreation(params)

This class creates the geometry used for a given example. Gmsh is used to create the computational domain

The class is initialised here

Parameters:

params (_type_) – _description_

build(params)

panels: This function creates the computational domain for a 3d simulation involving N panels. The panels are set at a distance apart, rotated at an angle theta and are elevated with a distance H from the ground. panels2d: This function creates the computational domain for a 2d simulation involving N panels. The panels are set at a distance apart, rotated at an angle theta and are elevated with a distance H from the ground. cylinder3d: This function creates the computational domain for a flow around a 3D cylinder. cylinder2d: This function creates the computational domain for a flow around a 2D cylinder.

Returns:

The function returns gmsh.model which contains the geometric description of the computational domain

mark_surfaces(params, domain_markers)

This function call iterates over all boundaries and assigns tags for each boundary. The Tags are being used when appying boundary condition.

set_length_scales(params, domain_markers)

This function call defines the characteristic length for the mesh in locations of interst LcMin,LcMax,DistMin and DistMax are used to create a refined mesh in specific locations which results in a high fidelity mesh without using a uniform element size in the whole mesh.