2D_profile: 2D external aero CFD RANS dataset, under geometrical variations
收藏资源简介:
This entry contains a dataset of 2D external aero CFD RANS solutions, under geometrical variations. The files format is PLAID, see the plaid documentation. The variablity in the samples is the geometry (mesh). Outputs of interest are 4 fields. Samples have been computed on large refined meshes, which have been cut close to the profil. The dataset has a training set of size 300 and a testing set of size 100. Outputs are not provided on the testing sets. Tips to access the data: After decompressing the downloaded file: from plaid.containers.dataset import Datasetfrom plaid.problem_definition import ProblemDefinition dataset = Dataset()problem = ProblemDefinition() problem._load_from_dir_(os.path.join(/path/to/data,'problem_definition'))dataset._load_from_dir_(os.path.join(/path/to/data,'dataset'), verbose = True) print("problem =", problem)print("dataset =", dataset) sample = dataset[0]print("sample =", sample) for fn in sample.get_field_names(): print(f"{fn} =", sample.get_field(fn))for sn in sample.get_scalar_names(): print(f"{sn} =", sample.get_scalar(sn)) print("nodes =", sample.get_nodes())print("elements =", sample.get_elements())print("nodal_tags =", sample.get_nodal_tags())
本条目收录了一组针对几何变化场景的二维外部气动计算流体力学(CFD)雷诺平均纳维-斯托克斯(RANS)求解结果数据集。 文件格式为PLAID,相关说明请参阅PLAID官方文档。 样本的可变属性为几何外形(网格)。本次待关注的输出结果共包含4个场变量。所有样本均在高精度加密网格上完成计算,该网格已在贴近外形轮廓处完成截断处理。 该数据集分为训练集与测试集两部分,其中训练集规模为300,测试集规模为100。测试集未提供对应的输出结果。 数据访问指南: 解压下载的压缩文件后,可通过以下代码加载数据集: from plaid.containers.dataset import Dataset from plaid.problem_definition import ProblemDefinition dataset = Dataset() problem = ProblemDefinition() problem._load_from_dir_(os.path.join(/path/to/data,'problem_definition')) dataset._load_from_dir_(os.path.join(/path/to/data,'dataset'), verbose = True) print("problem =", problem) print("dataset =", dataset) sample = dataset[0] print("sample =", sample) for fn in sample.get_field_names(): print(f"{fn} =", sample.get_field(fn)) for sn in sample.get_scalar_names(): print(f"{sn} =", sample.get_scalar(sn)) print("nodes =", sample.get_nodes()) print("elements =", sample.get_elements()) print("nodal_tags =", sample.get_nodal_tags())



