bird.meshing package

bird.meshing.block_cyl_mesh module

bird.meshing.block_cyl_mesh.assemble_geom(input_file, topo_file)

Assemble the block-cylindrical geometry from input and topology files

Parameters:
  • input_file (str) – Path to the geometry input file (.json or .yaml)

  • topo_file (str) – Path to the topology file (.json or .yaml)

Returns:

geom_dict – Geometry: radii, lengths, wall blocks and boundary definitions

Return type:

dict

bird.meshing.block_cyl_mesh.assemble_mesh(input_file, geom_dict)

Assemble the mesh parameters (cell counts, gradings, corner points)

Parameters:
  • input_file (str) – Path to the geometry input file (.json or .yaml)

  • geom_dict (dict) – Geometry assembled by assemble_geom

Returns:

mesh_dict – Mesh parameters: cell counts (NR, NS, NVert), gradings and corner coordinates

Return type:

dict

bird.meshing.block_cyl_mesh.writeBlockMeshDict(out_folder, geom_dict, mesh_dict)

Write the blockMeshDict from the assembled geometry and mesh

Parameters:
  • out_folder (str) – Folder where blockMeshDict is written

  • geom_dict (dict) – Geometry assembled by assemble_geom

  • mesh_dict (dict) – Mesh parameters assembled by assemble_mesh

bird.meshing.block_cyl_mesh.write_indexed_var(fw: TextIO, name: str, values: list) None

Write a list of values as name-indexed blockMeshDict variables

For example name=”R” and values=[a, b] writes “R1 a;” then “R2 b;”

Parameters:
  • fw (TextIO) – Open blockMeshDict file to write to

  • name (str) – Prefix of the variable name

  • values (list) – Values written as name1, name2, …

bird.meshing.block_rect_mesh module

bird.meshing.block_rect_mesh.assemble_geom(input_file)
bird.meshing.block_rect_mesh.assemble_mesh(input_file)
bird.meshing.block_rect_mesh.from_block_rect_to_seg(input_geom_dict, rescale=True)
bird.meshing.block_rect_mesh.main(input_file, output_folder)
bird.meshing.block_rect_mesh.make_fluid_blocks_from_corner(corners)
bird.meshing.block_rect_mesh.writeBlockMeshDict(out_folder, geomDict, meshDict)
bird.meshing.block_rect_mesh.write_blocks(outfile, blockids, lengths, nboxes, points_per_len)
bird.meshing.block_rect_mesh.write_ofoam_preamble(outfile)
bird.meshing.block_rect_mesh.write_patches(outfile)
bird.meshing.block_rect_mesh.write_vertices(outfile, lengths, nboxes)

bird.meshing.stirred_tank_mesh module

bird.meshing.stirred_tank_mesh.get_baffle_point_of(splti, ci, zi, react)
bird.meshing.stirred_tank_mesh.get_globalindex_of(splti, ci, zi, react)
bird.meshing.stirred_tank_mesh.get_reactor_geom(yamlfile)
bird.meshing.stirred_tank_mesh.write_blocks(outfile, react)
bird.meshing.stirred_tank_mesh.write_edges(outfile, react)
bird.meshing.stirred_tank_mesh.write_face(outfile, ids)

Write one face (a list of vertex ids) as a blockMeshDict entry

bird.meshing.stirred_tank_mesh.write_ofoam_preamble(outfile, react)
bird.meshing.stirred_tank_mesh.write_patches(outfile, react)

Write the boundary patches of the stirred tank blockMeshDict

bird.meshing.stirred_tank_mesh.write_vertices(outfile, react)