Skip to content

Commit

Permalink
Fix CylinderMesh.call_fsiTurbine_mapLoads unit test. (#1279)
Browse files Browse the repository at this point in the history
Co-authored-by: Marc T. Henry de Frahan <[email protected]>
  • Loading branch information
jrood-nrel and marchdf authored Aug 6, 2024
1 parent 8cf7a38 commit 6395cef
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 54 deletions.
2 changes: 1 addition & 1 deletion reg_tests/CTestList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ if(NOT ENABLE_CUDA AND NOT ENABLE_ROCM)
add_test_r(multiElemCylinder 4)
endif()

if(ENABLE_OPENFAST AND ENABLE_TRILINOS_SOLVERS)
if(ENABLE_OPENFAST AND ENABLE_HYPRE)
add_test_r(nrel5MWactuatorLine 4)
add_test_r(nrel5MWactuatorLineAnisoGauss 4)
add_test_r(nrel5MWactuatorLineFllc 4)
Expand Down
18 changes: 8 additions & 10 deletions reg_tests/test_files/nrel5MWactuatorDisk/nrel5MWactuatorDisk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,22 @@ Simulations:
linear_solvers:

- name: solve_scalar
type: tpetra
method: gmres
preconditioner: sgs
type: hypre
method: hypre_gmres
preconditioner: boomerAMG
tolerance: 1e-5
max_iterations: 50
kspace: 50
kspace: 5
output_level: 0

- name: solve_cont
type: tpetra
method: gmres
preconditioner: muelu
type: hypre
method: hypre_gmres
preconditioner: boomerAMG
tolerance: 1e-5
max_iterations: 50
kspace: 50
kspace: 5
output_level: 0
muelu_xml_file_name: ../../xml/milestone.xml
summarize_muelu_timer: no

realms:

Expand Down
18 changes: 8 additions & 10 deletions reg_tests/test_files/nrel5MWactuatorLine/nrel5MWactuatorLine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,22 @@ Simulations:
linear_solvers:

- name: solve_scalar
type: tpetra
method: gmres
preconditioner: mt_sgs
type: hypre
method: hypre_gmres
preconditioner: boomerAMG
tolerance: 1e-12
max_iterations: 200
kspace: 50
kspace: 5
output_level: 0

- name: solve_cont
type: tpetra
method: gmres
preconditioner: muelu
type: hypre
method: hypre_gmres
preconditioner: boomerAMG
tolerance: 1e-12
max_iterations: 200
kspace: 50
kspace: 5
output_level: 0
muelu_xml_file_name: ../../xml/milestone.xml
summarize_muelu_timer: no

realms:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,22 @@ Simulations:
linear_solvers:

- name: solve_scalar
type: tpetra
method: gmres
preconditioner: sgs
type: hypre
method: hypre_gmres
preconditioner: boomerAMG
tolerance: 1e-5
max_iterations: 50
kspace: 50
kspace: 5
output_level: 0

- name: solve_cont
type: tpetra
method: gmres
preconditioner: muelu
type: hypre
method: hypre_gmres
preconditioner: boomerAMG
tolerance: 1e-5
max_iterations: 50
kspace: 50
kspace: 5
output_level: 0
muelu_xml_file_name: ../../xml/milestone.xml
summarize_muelu_timer: no

realms:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,22 @@ Simulations:
linear_solvers:

- name: solve_scalar
type: tpetra
method: gmres
preconditioner: sgs
type: hypre
method: hypre_gmres
preconditioner: boomerAMG
tolerance: 1e-5
max_iterations: 50
kspace: 50
kspace: 5
output_level: 0

- name: solve_cont
type: tpetra
method: gmres
preconditioner: muelu
type: hypre
method: hypre_gmres
preconditioner: boomerAMG
tolerance: 1e-5
max_iterations: 50
kspace: 50
kspace: 5
output_level: 0
muelu_xml_file_name: ../../xml/milestone.xml
summarize_muelu_timer: no

realms:

Expand Down
18 changes: 8 additions & 10 deletions reg_tests/test_files/nrel5MWadvActLine/nrel5MWadvActLine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,22 @@ Simulations:
linear_solvers:

- name: solve_scalar
type: tpetra
method: gmres
preconditioner: sgs
type: hypre
method: hypre_gmres
preconditioner: boomerAMG
tolerance: 1e-5
max_iterations: 50
kspace: 50
kspace: 5
output_level: 0

- name: solve_cont
type: tpetra
method: gmres
preconditioner: muelu
type: hypre
method: hypre_gmres
preconditioner: boomerAMG
tolerance: 1e-5
max_iterations: 50
kspace: 50
kspace: 5
output_level: 0
muelu_xml_file_name: ../../xml/milestone.xml
summarize_muelu_timer: no

realms:

Expand Down
6 changes: 3 additions & 3 deletions unit_tests/aero/UnitTestFSIturbine.C
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ TEST_F(CylinderMesh, call_fsiTurbine_mapLoads)
EXPECT_TRUE(fsiTurb != nullptr);
fast::turbineDataType& params = fsiTurb->params_;

EXPECT_EQ(0, params.nBRfsiPtsTwr);
EXPECT_EQ(0, params.numBlades);

const unsigned numNodes = set_tower_ref_pos(*bulk, *fsiTurb);

EXPECT_EQ(21, params.nBRfsiPtsTwr);
EXPECT_EQ(0, params.numBlades);

verify_all_zeros(*bulk, *loadMap_);
verify_all_zeros(*bulk, *loadMapInterp_);

Expand Down

0 comments on commit 6395cef

Please sign in to comment.