Please refresh the page if equations are not rendered correctly.
---------------------------------------------------------------
Case folder creation:
def CaseFolderCreate(CaseFolderName, isDelete):
"""
This function is used to create a folder for the case with essential subfolders.
:param CaseFolderName: Name of the folder.
:param isDelete: Whether to delete the folder if it exists.
:return: None.
"""
isExists = os.path.exists(CaseFolderName)
if isExists and isDelete:
shutil.rmtree(CaseFolderName)
os.makedirs(CaseFolderName)
os.makedirs(CaseFolderName + '/0')
os.makedirs(CaseFolderName + '/constant')
os.makedirs(CaseFolderName + '/system')
open(CaseFolderName + '/foam.foam', 'w')
return None
Comments NOTHING