Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NTRfC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
TFD - Institut für Turbomaschinen und Fluid-Dynamik
tools
NTRfC
Commits
3eaee480
Commit
3eaee480
authored
2 years ago
by
many
Browse files
Options
Downloads
Patches
Plain Diff
outcomment script-part
parent
54af5170
No related branches found
No related tags found
2 merge requests
!10
Merge recent changes in master to we_ahrens
,
!7
udate project structure
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ntrfc/postprocessing/meshconvergence/grid_convergece_index.py
+10
-11
10 additions, 11 deletions
...c/postprocessing/meshconvergence/grid_convergece_index.py
with
10 additions
and
11 deletions
ntrfc/postprocessing/meshconvergence/grid_convergece_index.py
+
10
−
11
View file @
3eaee480
import
numpy
as
np
from
scipy.optimize
import
least_squares
...
...
@@ -69,17 +68,17 @@ def getGCI(N1,N2,N3,fc1,fc2,fc3,D, Fs=1.25):
# [EERE_1_p1, EERE_2_p1, EERE_3_p1]
fc3
=
25.263
fc2
=
23.565
fc1
=
23.151
N3
=
1
N2
=
8
N1
=
27
Fs
=
1.25
D
=
3
#
fc3 = 25.263
#
fc2 = 23.565
#
fc1 = 23.151
#
#
N3 = 1
#
N2 = 8
#
N1 = 27
#
Fs=1.25
#
D = 3
#print('p(min) = ',p_min,'\np(max) = ',p_max,'\np(act) = ',P,'\np(rel) = ',prel(p_opt,P))
a
=
getGCI
(
N1
,
N2
,
N3
,
fc1
,
fc2
,
fc3
,
D
,
Fs
=
1.25
)
# GCI_1, GCI_2, GCI_3
= getGCI(N1, N2, N3, fc1, fc2, fc3, D, Fs=1.25)
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