Skip to content

Commit bee055e

Browse files
committed
add verification case
1 parent 2cda5ec commit bee055e

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

SU2_CFD/src/numerics/elasticity/CFEAElasticity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void CFEAElasticity::Compute_Body_Forces(CElement *element, const CConfig *confi
285285
}
286286
GeometryToolbox::CrossProduct(omega.data(), r.data(), wr.data());
287287
GeometryToolbox::CrossProduct(omega.data(), wr.data(), w2r.data());
288-
for (auto iDim = 0; iDim < 3; ++iDim) total_accel[iDim] += w2r[iDim];
288+
for (auto iDim = 0; iDim < 3; ++iDim) total_accel[iDim] -= w2r[iDim];
289289
}
290290
std::array<su2double, 3> force{};
291291
for (auto iDim = 0u; iDim < nDim; iDim++) {
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2+
% SU2 configuration file %
3+
% Case description: Spinning Cylinder %
4+
% Author: Pedro Gomes %
5+
% Institution: SU2 Foundation %
6+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7+
8+
SOLVER= ELASTICITY
9+
MATH_PROBLEM= DIRECT
10+
GEOMETRIC_CONDITIONS= SMALL_DEFORMATIONS
11+
MATERIAL_MODEL= LINEAR_ELASTIC
12+
13+
ELASTICITY_MODULUS= 2E11
14+
POISSON_RATIO= 0.3
15+
MATERIAL_DENSITY= 7854
16+
17+
MARKER_SYM= ( x_minus, per_1, per_2 )
18+
MARKER_PRESSURE= ( inner, 0, outer, 0, x_plus, 0 )
19+
20+
CENTRIFUGAL_FORCE= YES
21+
ROTATION_RATE= ( 1500, 0, 0 )
22+
MOTION_ORIGIN= ( 0, 0, 0 )
23+
24+
LINEAR_SOLVER= CONJUGATE_GRADIENT
25+
LINEAR_SOLVER_PREC= ILU
26+
LINEAR_SOLVER_ERROR= 1E-8
27+
LINEAR_SOLVER_ITER= 1000
28+
29+
SCREEN_OUTPUT= INNER_ITER, RMS_RES, LINSOL, VMS
30+
OUTPUT_WRT_FREQ= 1
31+
INNER_ITER= 1
32+
33+
MESH_FILENAME= cylinder.su2
34+

TestCases/parallel_regression.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,18 @@ def main():
12251225
statbeam3d.command = TestCase.Command(exec = "parallel_computation_fsi.py", param = "-f")
12261226
test_list.append(statbeam3d)
12271227

1228+
# Rotating cylinder, 3d
1229+
rotating_cylinder_fea = TestCase('rotating_cylinder_fea')
1230+
rotating_cylinder_fea.cfg_dir = "fea_fsi/rotating_cylinder"
1231+
rotating_cylinder_fea.cfg_file = "config.cfg"
1232+
rotating_cylinder_fea.test_iter = 0
1233+
# For a thin disk with the inner and outer radius of this geometry, from
1234+
# "Formulas for Stress, Strain, and Structural Matrices", 2nd Edition, figure 19-4,
1235+
# the maximum stress is 165.6MPa, we get a Von Misses stress very close to that.
1236+
rotating_cylinder_fea.test_vals = [-1.986097, -1.023250, -1.022700, 47, -8.101266, 1.6458e+08]
1237+
rotating_cylinder_fea.command = TestCase.Command(exec = "parallel_computation_fsi.py", param = "-f")
1238+
test_list.append(rotating_cylinder_fea)
1239+
12281240
# Dynamic beam, 2d
12291241
dynbeam2d = TestCase('dynbeam2d')
12301242
dynbeam2d.cfg_dir = "fea_fsi/DynBeam_2d"

0 commit comments

Comments
 (0)