Dear Mohammadreza,
your problem is caused by a bug in your problem_darcy.hh. You need to
add brackets around the if-statement in line 195:
if(couplingManager().isCoupledEntity(CouplingManager::darcyIdx, scvf))
{
values[Indices::conti0EqIdx] =
couplingManager().couplingData().massCouplingCondition(element,
fvGeometry, elemVolVars, scvf);
values[Indices::energyEqIdx] =
couplingManager().couplingData().energyCouplingCondition(element,
fvGeometry, elemVolVars,scvf);
}
However, there a a number of different issues:
1.) You probably want to simulate a transient problem. For this, you
need to add a timeloop to your main.cc file
2.) Be careful if you want to consider gravity using a high-density
fluid like water and the "pressure Drichlet" outlet condition.
If you just assign a single pressure value at the outlet, you
neglect the hydrostatic pressure gradient within your domain which will
yield unphysical results (at low flow velocities):
the fluid will leave the domain at the bottom and re-enters at the
top at the right sight (looks like half of a Donut...).
There are a couple of options for this problem:
a.) don't consider gravity,
b.) consider air instead of water,
c.) increase your channel flow speed, this might overlay the
pressure gradient effect
d.) incorporate the hydrostatic pressure gradient into your
pressure boundary value at the right side
I recommend the 1p2cni_2p2cni test for reference. There you have a
working non-isothermal system which you can simplify to your needs.
Good luck!
Kilian
Am 18.07.20 um 08:45 schrieb MOHAMMADREZA KARAMI:
Hello
I want to model nonIsothermal oneP-oneP darcy-stokes multi-domain.
For this purpose,I use 1p-1p model and change stokes and darcy model
to stokesNI & darcyNI.
I successfully make this file but after run this maked file, I got
this error:
Dune reported error: Dune::InvalidStateException
[darcyCouplingContext:/home/[username]/Desktop/DUMUX/DUMUX/dumux/dumux/multidomain/boundary/stokesdarcy/couplingmanager.hh:406]:
No coupling context found at scvf 0 0.05 ---> Abort!
how can i solve this error?
(If necessary,I attach my source file.)
--
This email was Anti Virus checked by Security Gateway.
_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Kilian Weishaupt M.Sc.
Institut für Wasser- und Umweltsystemmodellierung (IWS)
Lehrstuhl für Hydromechanik und Hydrosystemmodellierung
Universität Stuttgart, Pfaffenwaldring 61, 70569 Stuttgart
Email: [email protected]
Telefon: 0049 711 685-60461 ** fax: 0049-711-685-60430
http://www.hydrosys.uni-stuttgart.de
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux