Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Méso-NH code
Commits
075fe18b
Commit
075fe18b
authored
10 years ago
by
Gaelle Tanguy
Committed by
WAUTELET Philippe
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Christine 10/04/2014 : correction for very small values of equivalent diameter
parent
c4b11d72
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/MNH/mode_fscatter.f90
+17
-7
17 additions, 7 deletions
src/MNH/mode_fscatter.f90
with
17 additions
and
7 deletions
src/MNH/mode_fscatter.f90
+
17
−
7
View file @
075fe18b
...
@@ -149,6 +149,9 @@ CONTAINS
...
@@ -149,6 +149,9 @@ CONTAINS
INTEGER
::
N
,
NSTOP
INTEGER
::
N
,
NSTOP
REAL
::
CHI0X
,
CHI1X
,
CHIX
,
DX
,
CHIPX
REAL
::
CHI0X
,
CHI1X
,
CHIX
,
DX
,
CHIPX
COMPLEX
::
Y
,
XBACK
,
AN
,
BN
,
DY
COMPLEX
::
Y
,
XBACK
,
AN
,
BN
,
DY
!
! Modification (C.Lac) 04/2014 : exclude very small values of x
!
! -----------------------------------------------------------
! -----------------------------------------------------------
! del is the inner sphere convergence criterion
! del is the inner sphere convergence criterion
! -----------------------------------------------------------
! -----------------------------------------------------------
...
@@ -164,8 +167,14 @@ CONTAINS
...
@@ -164,8 +167,14 @@ CONTAINS
qsca
=
0.0
qsca
=
0.0
qext
=
0.0
qext
=
0.0
xback
=
(
0.0
,
0.0
)
xback
=
(
0.0
,
0.0
)
n
=
1
n
=
1
do
while
(
n
<=
nstop
)
IF
(
x
<=
1.E-07
)
THEN
QEXT
=
0.
QSCA
=
0.
QBACK
=
0.
RETURN
ELSE
do
while
(
n
<=
nstop
)
! DO n=1,nstop
! DO n=1,nstop
DX
=
1.0
/(
n
/
x
-
dx
)
-
n
/
x
DX
=
1.0
/(
n
/
x
-
dx
)
-
n
/
x
DY
=
1.0
/(
n
/
y
-
dy
)
-
n
/
y
DY
=
1.0
/(
n
/
y
-
dy
)
-
n
/
y
...
@@ -178,15 +187,16 @@ do while(n<=nstop)
...
@@ -178,15 +187,16 @@ do while(n<=nstop)
qsca
=
qsca
+
(
2.0
*
n
+1.0
)
*
(
ABS
(
an
)
**
2
+
ABS
(
bn
)
**
2
)
qsca
=
qsca
+
(
2.0
*
n
+1.0
)
*
(
ABS
(
an
)
**
2
+
ABS
(
bn
)
**
2
)
xback
=
xback
+
(
2.0
*
n
+1.0
)
*
(
-1.
)
**
n
*
(
an
-
bn
)
xback
=
xback
+
(
2.0
*
n
+1.0
)
*
(
-1.
)
**
n
*
(
an
-
bn
)
qext
=
qext
+
(
2.0
*
n
+
1.0
)
*
(
an
+
bn
)
qext
=
qext
+
(
2.0
*
n
+
1.0
)
*
(
an
+
bn
)
n
=
n
+1
n
=
n
+1
END
DO
END
DO
QSCA
=
(
2.0
/(
X
*
X
))
*
qsca
QSCA
=
(
2.0
/(
X
*
X
))
*
qsca
QEXT
=
(
2.0
/(
X
*
X
))
*
qext
QEXT
=
(
2.0
/(
X
*
X
))
*
qext
qback
=
(
1.0
/(
X
*
X
))
*
ABS
(
XBACK
)
**
2
qback
=
(
1.0
/(
X
*
X
))
*
ABS
(
XBACK
)
**
2
!qext=4.*x*AIMAG((REFREL**2-1.)/(REFREL**2+2.)*&
!qext=4.*x*AIMAG((REFREL**2-1.)/(REFREL**2+2.)*&
! (1+X**2/15.*(REFREL**2-1.)/(REFREL**2+2.)*(REFREL**4+27.*REFREL**2+38.)/(2.*REFREL**2+3.)))&
! (1+X**2/15.*(REFREL**2-1.)/(REFREL**2+2.)*(REFREL**4+27.*REFREL**2+38.)/(2.*REFREL**2+3.)))&
! +8./3.*X**4*REAL(((REFREL**2-1.)/(REFREL**2+2.))**2)
! +8./3.*X**4*REAL(((REFREL**2-1.)/(REFREL**2+2.))**2)
!qback=4.*X**4*ABS((REFREL**2-1)/(REFREL**2+2))**2
!qback=4.*X**4*ABS((REFREL**2-1)/(REFREL**2+2))**2
END
IF
RETURN
RETURN
END
SUBROUTINE
BHMIE
END
SUBROUTINE
BHMIE
!
!
...
...
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