2D_profile: 2D external aero CFD RANS datasets, under geometrical variations
收藏资源简介:
This entry contains two 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 are 6 input scalars and 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, and adapted (remeshed) using an anisotropic metric based on the output fields of interest. The large dataset has a training set of size 299 and a testing set of size 100, while the small dataset has a training set of size 100 and a testing set of size 50. 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())



