Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gyacomo
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Antoine Cyril David Hoffmann
Gyacomo
Commits
8caeb5f1
Commit
8caeb5f1
authored
3 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Correction of the cosolver collisionality normalization
parent
657e60ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/model_mod.F90
+7
-10
7 additions, 10 deletions
src/model_mod.F90
with
7 additions
and
10 deletions
src/model_mod.F90
+
7
−
10
View file @
8caeb5f1
...
@@ -51,10 +51,6 @@ CONTAINS
...
@@ -51,10 +51,6 @@ CONTAINS
q_e
,
q_i
,
eta_n
,
eta_T
,
eta_B
,
lambdaD
q_e
,
q_i
,
eta_n
,
eta_T
,
eta_B
,
lambdaD
READ
(
lu_in
,
model_par
)
READ
(
lu_in
,
model_par
)
!WRITE(*,model_par)
! Collision Frequency Normalization ... to match fluid limit
nu
=
nu
*
0.532_dp
!Precompute species dependant factors
!Precompute species dependant factors
IF
(
q_e
.NE.
0._dp
)
THEN
IF
(
q_e
.NE.
0._dp
)
THEN
...
@@ -73,14 +69,15 @@ CONTAINS
...
@@ -73,14 +69,15 @@ CONTAINS
qi2_taui
=
(
q_i
**
2
)/
tau_i
qi2_taui
=
(
q_i
**
2
)/
tau_i
sigmae2_taue_o2
=
sigma_e
**
2
*
tau_e
/
2._dp
! factor of the Kernel argument
sigmae2_taue_o2
=
sigma_e
**
2
*
tau_e
/
2._dp
! factor of the Kernel argument
sigmai2_taui_o2
=
sigma_i
**
2
*
tau_i
/
2._dp
sigmai2_taui_o2
=
sigma_i
**
2
*
tau_i
/
2._dp
IF
(
CO
.GT.
1
)
THEN
! If using COSOlver mat, remove sqrt(2) factor (already contained)
!! We must change the normalization of the collisionality according to the collision model
nu_e
=
nu
! electron-ion collision frequency (where already multiplied by 0.532)
IF
(
ABS
(
CO
)
.GT.
1
)
THEN
! If using COSOlver mat (2 Sugama, 3 Coulomb)
nu_e
=
0.532_dp
*
nu
/
sigma_e
*
(
tau_e
)
**
(
3._dp
/
2._dp
)
! electron-ion collision frequency (where already multiplied by 0.532)
nu_i
=
0.532_dp
*
nu
! ion-ion collision frequ.
nu_ee
=
nu_e
! e-e coll. frequ.
nu_ee
=
nu_e
! e-e coll. frequ.
nu_i
=
nu
*
sigma_e
*
(
tau_i
)
**
(
-3._dp
/
2._dp
)
! ion-ion collision frequ.
nu_ie
=
nu_i
! i-e coll. frequ.
nu_ie
=
nu_i
! i-e coll. frequ.
ELSE
ELSE
! If we use an ad hoc collision operator as Dougherty or Lenhard-Bernstein
nu_e
=
nu
! electron-ion collision frequency
(where already multiplied by 0.532)
nu_e
=
0.532_dp
*
nu
! electron-ion collision frequency
nu_i
=
nu
*
sigma_e
*
(
tau_i
)
**
(
-3._dp
/
2._dp
)/
SQRT2
! ion-ion collision frequ.
nu_i
=
0.532_dp
*
nu
*
sigma_e
*
(
tau_i
)
**
(
-3._dp
/
2._dp
)/
SQRT2
! ion-ion collision frequ.
nu_ee
=
nu_e
/
SQRT2
! e-e coll. frequ.
nu_ee
=
nu_e
/
SQRT2
! e-e coll. frequ.
nu_ie
=
nu
*
sigma_e
**
2
! i-e coll. frequ.
nu_ie
=
nu
*
sigma_e
**
2
! i-e coll. frequ.
ENDIF
ENDIF
...
...
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