-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,175 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import argparse | ||
import os | ||
import sys | ||
|
||
import numpy as np | ||
|
||
from bird import BIRD_BLOCK_RECT_MESH_TEMP_DIR | ||
from bird.meshing.block_rect_mesh import ( | ||
assemble_geom, | ||
assemble_mesh, | ||
writeBlockMeshDict, | ||
) | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser(description="Block rectangular meshing") | ||
parser.add_argument( | ||
"-i", | ||
"--input_file", | ||
type=str, | ||
metavar="", | ||
required=True, | ||
help="Input file for meshing and geometry parameters", | ||
default="input.json", | ||
) | ||
parser.add_argument( | ||
"-o", | ||
"--output_folder", | ||
type=str, | ||
metavar="", | ||
required=True, | ||
help="Output folder for blockMeshDict", | ||
default="system", | ||
) | ||
args = parser.parse_args() | ||
geomDict = assemble_geom(args.input_file) | ||
meshDict = assemble_mesh(args.input_file) | ||
writeBlockMeshDict(args.output_folder, geomDict, meshDict) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.