mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-24 10:10:18 -06:00
updated INSTALL text file instructions
This commit is contained in:
parent
fae10bf07d
commit
86c0f2267f
@ -167,6 +167,8 @@ public:
|
|||||||
void boundaryTypes(BoundaryTypes &BCtypes, const Vertex &vertex) const
|
void boundaryTypes(BoundaryTypes &BCtypes, const Vertex &vertex) const
|
||||||
{
|
{
|
||||||
const GlobalPosition &pos = vertex.geometry().center();
|
const GlobalPosition &pos = vertex.geometry().center();
|
||||||
|
Scalar right = this->bboxMax()[0];
|
||||||
|
|
||||||
if (pos[0] < eps_) // Dirichlet conditions on left boundary
|
if (pos[0] < eps_) // Dirichlet conditions on left boundary
|
||||||
BCtypes.setAllDirichlet();
|
BCtypes.setAllDirichlet();
|
||||||
else // neuman for the remaining boundaries
|
else // neuman for the remaining boundaries
|
||||||
@ -179,6 +181,8 @@ public:
|
|||||||
// primary variables.
|
// primary variables.
|
||||||
void dirichlet(PrimaryVariables &values, const Vertex &vertex) const
|
void dirichlet(PrimaryVariables &values, const Vertex &vertex) const
|
||||||
{
|
{
|
||||||
|
const GlobalPosition &pos = vertex.geometry().center();
|
||||||
|
|
||||||
values[Indices::pwIdx] = 200.0e3; // 200 kPa = 2 bar
|
values[Indices::pwIdx] = 200.0e3; // 200 kPa = 2 bar
|
||||||
values[Indices::SnIdx] = 0.0; // 0 % oil saturation on left boundary
|
values[Indices::SnIdx] = 0.0; // 0 % oil saturation on left boundary
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user