Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
teqp_fork_old
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
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
Sven Michael Pohl
teqp_fork_old
Commits
4308fa88
Commit
4308fa88
authored
3 years ago
by
Ian Bell
Browse files
Options
Downloads
Patches
Plain Diff
Few more template
parent
3f9561f4
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
include/teqp/algorithms/VLE.hpp
+3
-3
3 additions, 3 deletions
include/teqp/algorithms/VLE.hpp
with
3 additions
and
3 deletions
include/teqp/algorithms/VLE.hpp
+
3
−
3
View file @
4308fa88
...
@@ -107,12 +107,12 @@ auto extrapolate_from_critical(const Model& model, const Scalar Tc, const Scalar
...
@@ -107,12 +107,12 @@ auto extrapolate_from_critical(const Model& model, const Scalar Tc, const Scalar
using
tdx
=
TDXDerivatives
<
Model
>
;
using
tdx
=
TDXDerivatives
<
Model
>
;
auto
z
=
(
Eigen
::
ArrayXd
(
1
)
<<
1.0
).
finished
();
auto
z
=
(
Eigen
::
ArrayXd
(
1
)
<<
1.0
).
finished
();
auto
R
=
model
.
R
;
auto
R
=
model
.
R
;
auto
ders
=
tdx
::
get_Ar0n
<
4
>
(
model
,
Tc
,
rhoc
,
z
);
auto
ders
=
tdx
::
template
get_Ar0n
<
4
>(
model
,
Tc
,
rhoc
,
z
);
auto
dpdrho
=
R
*
Tc
*
(
1
+
2
*
ders
[
1
]
+
ders
[
2
]);
// Should be zero
auto
dpdrho
=
R
*
Tc
*
(
1
+
2
*
ders
[
1
]
+
ders
[
2
]);
// Should be zero
auto
d2pdrho2
=
R
*
Tc
/
rhoc
*
(
2
*
ders
[
1
]
+
4
*
ders
[
2
]
+
ders
[
3
]);
// Should be zero
auto
d2pdrho2
=
R
*
Tc
/
rhoc
*
(
2
*
ders
[
1
]
+
4
*
ders
[
2
]
+
ders
[
3
]);
// Should be zero
auto
d3pdrho3
=
R
*
Tc
/
(
rhoc
*
rhoc
)
*
(
6
*
ders
[
2
]
+
6
*
ders
[
3
]
+
ders
[
4
]);
auto
d3pdrho3
=
R
*
Tc
/
(
rhoc
*
rhoc
)
*
(
6
*
ders
[
2
]
+
6
*
ders
[
3
]
+
ders
[
4
]);
auto
Ar11
=
tdx
::
get_Ar11
(
model
,
Tc
,
rhoc
,
z
);
auto
Ar11
=
tdx
::
template
get_Ar11
(
model
,
Tc
,
rhoc
,
z
);
auto
Ar12
=
tdx
::
get_Ar12
(
model
,
Tc
,
rhoc
,
z
);
auto
Ar12
=
tdx
::
template
get_Ar12
(
model
,
Tc
,
rhoc
,
z
);
auto
d2pdrhodT
=
R
*
(
1
+
2
*
ders
[
1
]
+
ders
[
2
]
-
2
*
Ar11
-
Ar12
);
auto
d2pdrhodT
=
R
*
(
1
+
2
*
ders
[
1
]
+
ders
[
2
]
-
2
*
Ar11
-
Ar12
);
auto
Brho
=
sqrt
(
6
*
d2pdrhodT
*
Tc
/
d3pdrho3
);
auto
Brho
=
sqrt
(
6
*
d2pdrhodT
*
Tc
/
d3pdrho3
);
...
...
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