-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #324 from xcompact3d/UpdateTests_Continue
Update tests continue
- Loading branch information
Showing
44 changed files
with
2,499 additions
and
101 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,9 @@ | ||
# TGV flow with passive particle trackers | ||
set(case "TGV-Particles") | ||
set(case_dir "${test_dir}/${case}") | ||
file(MAKE_DIRECTORY ${case_dir}) | ||
set(input_file "input_tgv_particles.i3d") | ||
install(DIRECTORY DESTINATION ${CMAKE_INSTALL_PREFIX}/examples/${case}) | ||
install(FILES ${input_file} DESTINATION ${CMAKE_INSTALL_PREFIX}/examples/${case}) | ||
if(ADIOS2_FOUND) | ||
install(FILES adios2_config.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/examples/${case}) | ||
endif() | ||
# If testing active add test | ||
file(COPY ${input_file} DESTINATION ${case_dir}) | ||
if(ADIOS2_FOUND) | ||
file(COPY adios2_config.xml DESTINATION ${case_dir}) | ||
endif() | ||
add_test(NAME ${case} COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} $<TARGET_FILE:xcompact3d> ${input_file} WORKING_DIRECTORY ${case_dir}) | ||
# Particle-tracking | ||
set(case "Particle-tracking") | ||
set(example_files "") | ||
list(APPEND example_files "adios2_config.xml") | ||
list(APPEND example_files "input_channel_particles.i3d") | ||
list(APPEND example_files "input_tgv_particles.i3d") | ||
AddExample("${examples_dir}" "${case}" "${example_files}") | ||
|
||
|
||
# Channel flow with constantly injected passive particle trackers | ||
set(case "Channel-Particles") | ||
set(case_dir "${test_dir}/${case}") | ||
file(MAKE_DIRECTORY ${case_dir}) | ||
set(input_file "input_channel_particles.i3d") | ||
install(DIRECTORY DESTINATION ${CMAKE_INSTALL_PREFIX}/examples/${case}) | ||
install(FILES ${input_file} DESTINATION ${CMAKE_INSTALL_PREFIX}/examples/${case}) | ||
if(ADIOS2_FOUND) | ||
install(FILES adios2_config.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/examples/${case}) | ||
endif() | ||
# If testing active add test | ||
file(COPY ${input_file} DESTINATION ${case_dir}) | ||
if(ADIOS2_FOUND) | ||
file(COPY adios2_config.xml DESTINATION ${case_dir}) | ||
endif() | ||
add_test(NAME ${case} COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} $<TARGET_FILE:xcompact3d> ${input_file} WORKING_DIRECTORY ${case_dir}) |
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,51 @@ | ||
<?xml version="1.0"?> | ||
<adios-config> | ||
<io name="solution-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
<io name="in-outflow-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
<io name="turb-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
<io name="restart-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
<io name="statistics-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
<io name="restart-forces-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
</adios-config> |
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
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
# Wind-Turbine | ||
set(case "Wind-Turbine") | ||
set(example_files "") | ||
list(APPEND example_files "NREL-5MW_ALM") | ||
list(APPEND example_files "precursor-succesor-ADM") | ||
AddExample("${examples_dir}" "${case}" "${example_files}") | ||
|
||
|
||
add_subdirectory(NREL-5MW_ALM) | ||
add_subdirectory(two_turbines) |
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 |
---|---|---|
@@ -1,19 +1,8 @@ | ||
# ABL Neutral | ||
set(case "Wind-Turbine") | ||
set(case_dir "${test_dir}/${case}") | ||
file(MAKE_DIRECTORY ${case_dir}) | ||
set(input_file "input_test.i3d") | ||
install(DIRECTORY DESTINATION ${CMAKE_INSTALL_PREFIX}/examples/${case}) | ||
install(FILES ${input_file} DESTINATION ${CMAKE_INSTALL_PREFIX}/examples/${case}) | ||
install(FILES input_test.turb DESTINATION ${CMAKE_INSTALL_PREFIX}/examples/${case}) | ||
if(ADIOS2_FOUND) | ||
install(FILES adios2_config.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/examples/${case}) | ||
endif() | ||
# If testing active add test for TGV case | ||
file(COPY ${input_file} DESTINATION ${case_dir}) | ||
file(COPY input_test.turb DESTINATION ${case_dir}) | ||
file(COPY NRELResources DESTINATION ${case_dir}) | ||
if(ADIOS2_FOUND) | ||
file(COPY adios2_config.xml DESTINATION ${case_dir}) | ||
endif() | ||
add_test(NAME ${case} COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} $<TARGET_FILE:xcompact3d> ${input_file} WORKING_DIRECTORY ${case_dir}) | ||
# Wind-Turbine: NREL | ||
set(case "Wind-Turbine-NREL-5MW") | ||
set(example_files "") | ||
list(APPEND example_files "adios2_config.xml") | ||
list(APPEND example_files "NREL-5MW.i3d") | ||
list(APPEND example_files "NREL-5MW.turb") | ||
AddExample("${examples_dir}" "${case}" "${example_files}") | ||
add_subdirectory(NRELResources) |
3 changes: 3 additions & 0 deletions
3
examples/Wind-Turbine/NREL-5MW_ALM/NRELResources/Airfoils/CMakeLists.txt
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,3 @@ | ||
set(dir "Wind-Turbine-NREL-5MW/NRELResources/Airfoils") | ||
file(GLOB_RECURSE example_files "${CMAKE_CURRENT_SOURCE_DIR}/*.air") | ||
AddExample("${examples_dir}" "${dir}" "${example_files}") |
4 changes: 4 additions & 0 deletions
4
examples/Wind-Turbine/NREL-5MW_ALM/NRELResources/CMakeLists.txt
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,4 @@ | ||
set(dir "Wind-Turbine-NREL-5MW/NRELResources") | ||
file(GLOB_RECURSE example_files "${CMAKE_CURRENT_SOURCE_DIR}/*.al") | ||
AddExample("${examples_dir}" "${dir}" "${example_files}") | ||
add_subdirectory(Airfoils) |
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,3 @@ | ||
set(dir "Wind-Turbine-two-turbines/Airfoils") | ||
file(GLOB_RECURSE example_files "${CMAKE_CURRENT_SOURCE_DIR}/*.air") | ||
AddExample("${examples_dir}" "${dir}" "${example_files}") |
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,11 @@ | ||
# Wind-Turbine: NREL | ||
set(case "Wind-Turbine-two-turbines") | ||
set(example_files "") | ||
list(APPEND example_files "adios2_config.xml") | ||
list(APPEND example_files "input.i3d") | ||
list(APPEND example_files "BT2_1.turb") | ||
list(APPEND example_files "BT2_2.turb") | ||
list(APPEND example_files "Blade_N52.al") | ||
list(APPEND example_files "Tower.al") | ||
AddExample("${examples_dir}" "${case}" "${example_files}") | ||
add_subdirectory(Airfoils) |
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,51 @@ | ||
<?xml version="1.0"?> | ||
<adios-config> | ||
<io name="solution-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
<io name="in-outflow-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
<io name="turb-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
<io name="restart-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
<io name="statistics-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
<io name="restart-forces-io"> | ||
<engine type="BP4"> | ||
</engine> | ||
<transport type="File"> | ||
<parameter key="Library" value="fstream"/> | ||
<parameter key="ProfileUnits" value="Milliseconds"/> | ||
</transport> | ||
</io> | ||
</adios-config> |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
macro(AddExample example_dir case list_files) | ||
install(DIRECTORY DESTINATION ${example_dir}/${case}) | ||
macro(AddExample root_dir case list_files) | ||
install(DIRECTORY DESTINATION ${root_dir}/${case}) | ||
set(local_list "") | ||
list(APPEND local_list ${list_files}) | ||
foreach(ff IN LISTS local_list) | ||
install(FILES ${ff} DESTINATION ${example_dir}/${case}) | ||
install(FILES ${ff} DESTINATION ${root_dir}/${case}) | ||
endforeach() | ||
endmacro() | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# ABL | ||
set(case "ABL-Atmospheric-Boundary-Layer") | ||
set(input_file "input_neutral_test.i3d") | ||
CreateMPITest(${test_dir} ${case} ${input_file}) | ||
set(additional_inputs "") | ||
CreateMPITest(${test_dir} ${case} ${input_file} "${additional_inputs}") | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Cavity | ||
set(case "Cavity") | ||
set(input_file "input_test.i3d") | ||
CreateMPITest(${test_dir} ${case} ${input_file}) | ||
set(additional_inputs "") | ||
CreateMPITest(${test_dir} ${case} ${input_file} "${additional_inputs}") | ||
|
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Channel | ||
set(case "Channel-X") | ||
set(input_file "input_test_x.i3d") | ||
CreateMPITest(${test_dir} ${case} ${input_file}) | ||
set(additional_inputs "") | ||
CreateMPITest(${test_dir} ${case} ${input_file} "${additional_inputs}") | ||
set(case "Channel-Z") | ||
set(input_file "input_test_z.i3d") | ||
CreateMPITest(${test_dir} ${case} ${input_file}) | ||
set(additional_inputs "") | ||
CreateMPITest(${test_dir} ${case} ${input_file} "${additional_inputs}") | ||
|
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Cylinder | ||
set(case "Cylinder-wake") | ||
set(input_file "input_test.i3d") | ||
CreateMPITest(${test_dir} ${case} ${input_file}) | ||
set(additional_inputs "") | ||
CreateMPITest(${test_dir} ${case} ${input_file} "${additional_inputs}") | ||
set(case "Cylinder-wake-moving") | ||
set(input_file "input_test_moving.i3d") | ||
CreateMPITest(${test_dir} ${case} ${input_file}) | ||
set(additional_inputs "") | ||
CreateMPITest(${test_dir} ${case} ${input_file} "${additional_inputs}") | ||
|
Oops, something went wrong.