Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Development
openfoam
Commits
814c134d
Commit
814c134d
authored
16 years ago
by
Andrew Heather
Browse files
Options
Downloads
Patches
Plain Diff
bugfix - incorrect matrix type for d_p
parent
4dedd473
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/ODE/ODESolvers/SIBS/SIBS.C
+3
-3
3 additions, 3 deletions
src/ODE/ODESolvers/SIBS/SIBS.C
src/ODE/ODESolvers/SIBS/SIBS.H
+28
-27
28 additions, 27 deletions
src/ODE/ODESolvers/SIBS/SIBS.H
src/ODE/ODESolvers/SIBS/polyExtrapolate.C
+1
-1
1 addition, 1 deletion
src/ODE/ODESolvers/SIBS/polyExtrapolate.C
with
32 additions
and
31 deletions
src/ODE/ODESolvers/SIBS/SIBS.C
+
3
−
3
View file @
814c134d
...
...
@@ -71,8 +71,8 @@ void Foam::SIBS::solve
const
ODE
&
ode
,
scalar
&
x
,
scalarField
&
y
,
scalarField
&
dydx
,
const
scalar
eps
,
scalarField
&
dydx
,
const
scalar
eps
,
const
scalarField
&
yScale
,
const
scalar
hTry
,
scalar
&
hDid
,
...
...
@@ -96,7 +96,7 @@ void Foam::SIBS::solve
{
for
(
register
label
k
=
0
;
k
<
iq
;
k
++
)
{
alpha_
[
k
][
iq
]
=
alpha_
[
k
][
iq
]
=
pow
(
eps1
,
(
a_
[
k
+
1
]
-
a_
[
iq
+
1
])
/
((
a_
[
iq
+
1
]
-
a_
[
0
]
+
1
.
0
)
*
(
2
*
k
+
3
)));
}
...
...
This diff is collapsed.
Click to expand it.
src/ODE/ODESolvers/SIBS/SIBS.H
+
28
−
27
View file @
814c134d
...
...
@@ -29,8 +29,8 @@ Description
Foam::SIBS
SourceFiles
SI
BSCK
.C
SIBSQS
.C
SI
MPR
.C
polyExtrapolate
.C
\*---------------------------------------------------------------------------*/
...
...
@@ -61,7 +61,7 @@ class SIBS
mutable
scalarField
a_
;
mutable
scalarSquareMatrix
alpha_
;
mutable
scalar
Squ
ar
e
Matrix
d_p_
;
mutable
scalar
Rectangul
arMatrix
d_p_
;
mutable
scalarField
x_p_
;
mutable
scalarField
err_
;
...
...
@@ -75,30 +75,31 @@ class SIBS
mutable
scalar
epsOld_
,
xNew_
;
void
SIMPR
(
const
ODE
&
ode
,
const
scalar
xStart
,
const
scalarField
&
y
,
const
scalarField
&
dydx
,
const
scalarField
&
dfdx
,
const
scalarSquareMatrix
&
dfdy
,
const
scalar
deltaX
,
const
label
nSteps
,
scalarField
&
yEnd
)
const
;
void
polyExtrapolate
(
const
label
iest
,
const
scalar
xest
,
const
scalarField
&
yest
,
scalarField
&
yz
,
scalarField
&
dy
,
scalarField
&
x_p
,
scalarSquareMatrix
&
d_p
)
const
;
// Private member functions
void
SIMPR
(
const
ODE
&
ode
,
const
scalar
xStart
,
const
scalarField
&
y
,
const
scalarField
&
dydx
,
const
scalarField
&
dfdx
,
const
scalarSquareMatrix
&
dfdy
,
const
scalar
deltaX
,
const
label
nSteps
,
scalarField
&
yEnd
)
const
;
void
polyExtrapolate
(
const
label
iest
,
const
scalar
xest
,
const
scalarField
&
yest
,
scalarField
&
yz
,
scalarField
&
dy
,
scalarField
&
x_p
,
scalarRectangularMatrix
&
d_p
)
const
;
public:
...
...
This diff is collapsed.
Click to expand it.
src/ODE/ODESolvers/SIBS/polyExtrapolate.C
+
1
−
1
View file @
814c134d
...
...
@@ -36,7 +36,7 @@ void Foam::SIBS::polyExtrapolate
scalarField
&
yz
,
scalarField
&
dy
,
scalarField
&
x
,
scalar
Squ
ar
e
Matrix
&
d
scalar
Rectangul
arMatrix
&
d
)
const
{
label
n
=
yz
.
size
();
...
...
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