Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux-preCICE
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
Container Registry
Model registry
Operate
Environments
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
dumux-appl
dumux-preCICE
Commits
31b6d034
Commit
31b6d034
authored
6 years ago
by
Alexander Jaust
Browse files
Options
Downloads
Patches
Plain Diff
version with full coupling; needs debugging
parent
b708c857
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
appl/conjugateheattransfer/iterative/main_freeflow.cc
+34
-0
34 additions, 0 deletions
appl/conjugateheattransfer/iterative/main_freeflow.cc
with
34 additions
and
0 deletions
appl/conjugateheattransfer/iterative/main_freeflow.cc
+
34
−
0
View file @
31b6d034
...
...
@@ -49,6 +49,39 @@
#include
"../monolithic/problem_freeflow.hh"
#include
"precicewrapper.hh"
template
<
class
Problem
,
class
GridVariables
,
class
SolutionVector
>
void
getBoundaryHeatFluxes
(
const
Problem
&
problem
,
const
GridVariables
&
gridVars
,
const
SolutionVector
&
sol
)
{
const
auto
&
fvGridGeometry
=
problem
.
fvGridGeometry
();
auto
fvGeometry
=
localView
(
fvGridGeometry
);
auto
elemVolVars
=
localView
(
gridVars
.
curGridVolVars
());
auto
elemFaceVars
=
localView
(
gridVars
.
curGridFaceVars
());
auto
&
couplingInterface
=
precice_wrapper
::
PreciceWrapper
::
getInstance
();
for
(
const
auto
&
element
:
elements
(
fvGridGeometry
.
gridView
()))
{
fvGeometry
.
bindElement
(
element
);
elemVolVars
.
bindElement
(
element
,
fvGeometry
,
sol
);
elemFaceVars
.
bindElement
(
element
,
fvGeometry
,
sol
);
for
(
const
auto
&
scvf
:
scvfs
(
fvGeometry
))
{
if
(
couplingInterface
.
isCoupledEntity
(
scvf
.
index
()
)
)
{
//TODO: Actually writes temperature
const
auto
heatFlux
=
problem
.
neumann
(
element
,
fvGeometry
,
elemVolVars
,
elemFaceVars
,
scvf
)[
3
];
couplingInterface
.
writeHeatFluxOnFace
(
scvf
.
index
(),
heatFlux
);
}
}
}
}
int
main
(
int
argc
,
char
**
argv
)
try
{
using
namespace
Dumux
;
...
...
@@ -229,6 +262,7 @@ int main(int argc, char** argv) try
// Write heatflux to wrapper
//couplingInterface.writeHeatFluxOnFace( ... )
getBoundaryHeatFluxes
(
*
freeFlowProblem
,
*
freeFlowGridVariables
,
sol
);
//Tell wrapper that all values have been written
couplingInterface
.
writeHeatFluxToOtherSolver
();
...
...
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