Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sdpm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aerospace and Mechanical Engineering
sdpm
Commits
27322c67
Commit
27322c67
authored
1 year ago
by
Adrien Crovato
Browse files
Options
Downloads
Patches
Plain Diff
Fix codi
parent
3dcca275
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Version 1.1
Pipeline
#19886
passed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sdpm/src/sdpmSolver.cpp
+5
-5
5 additions, 5 deletions
sdpm/src/sdpmSolver.cpp
with
5 additions
and
5 deletions
sdpm/src/sdpmSolver.cpp
+
5
−
5
View file @
27322c67
...
...
@@ -547,12 +547,12 @@ void Solver::post(size_t imd, size_t ifq, sdpmVectorXcd const &etau, sdpmVectorX
for
(
size_t
i
=
0
;
i
<
elems
.
size
();
++
i
)
{
// phi_t, phi_x, phi_x(0), u^2
sdpmComplex
phit
=
-
sdpmComplex
(
0
,
1
)
*
omega
*
emu
(
_rows
[
elems
[
i
]]);
sdpmComplex
phit
=
-
sdpmComplex
(
0
.
,
1
.
)
*
omega
*
emu
(
_rows
[
elems
[
i
]]);
sdpmComplex
phix
=
u1
[
i
](
0
)
-
(
uc0
[
i
](
0
)
+
uc1
[
i
](
0
)
*
sdpmComplex
(
0.
,
1.
)
*
omega
);
sdpm
Doub
le
phix0
=
_u
[
elems
[
i
]
->
getId
()
-
1
](
0
)
-
ui
(
0
);
sdpmComplex
cp1
=
-
sdpmComplex
(
2
,
0
)
*
phit
+
mi
*
mi
*
(
2
*
phix0
*
phix
+
phix0
*
phit
);
sdpm
Comp
le
x
phix0
(
_u
[
elems
[
i
]
->
getId
()
-
1
](
0
)
-
ui
(
0
)
,
0.
)
;
sdpmComplex
cp1
=
-
sdpmComplex
(
2
.
,
0
.
)
*
phit
+
sdpmComplex
(
mi
*
mi
,
0.
)
*
(
sdpmComplex
(
2.
,
0.
)
*
phix0
*
phix
+
phix0
*
phit
);
for
(
size_t
j
=
0
;
j
<
3
;
++
j
)
cp1
-=
2
*
_u
[
elems
[
i
]
->
getId
()
-
1
](
j
)
*
u1
[
i
](
j
);
cp1
-=
sdpmComplex
(
2
*
_u
[
elems
[
i
]
->
getId
()
-
1
](
j
)
,
0.
)
*
u1
[
i
](
j
);
// cp
_cp1Re
[
imd
][
ifq
][
elems
[
i
]
->
getId
()
-
1
]
=
cp1
.
real
();
_cp1Im
[
imd
][
ifq
][
elems
[
i
]
->
getId
()
-
1
]
=
cp1
.
imag
();
...
...
@@ -579,7 +579,7 @@ void Solver::post(size_t imd, size_t ifq, sdpmVectorXcd const &etau, sdpmVectorX
b
->
setUnsteadyMomentCoeff
(
imd
,
ifq
,
bcm1
);
// compute mean load coefficient
sdpmVector3d
cf0
(
0.
,
0.
,
0.
);
sdpmVector3
c
d
cf0
=
sdpmVector3cd
::
Zero
(
);
std
::
vector
<
sdpmVector3d
>
loads
=
b
->
getLoads
();
for
(
size_t
ii
=
0
;
ii
<
loads
.
size
();
++
ii
)
cf0
+=
loads
[
ii
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment