Hi Christoph,

Here it is.

Georg

-----Ursprüngliche Nachricht-----
Von: Dumux [mailto:dumux-boun...@listserv.uni-stuttgart.de] Im Auftrag von 
Christoph Grüninger
Gesendet: Freitag, 17. April 2015 10:52
An: dumux@listserv.uni-stuttgart.de
Betreff: Re: [DuMuX] strange artifacts

Hi Georg,
can you provide the code where you set the boundary condition type?

Bye
Christoph

--
People who are more than casually interested in computers should have at least 
some idea of what the underlying hardware is like. Otherwise
the programs they write will be pretty weird.         -- Donald Knuth

    /*!
     * \brief Specifies which kind of boundary condition should be
     *        used for which equation on a given boundary segment.
     *
     * \param values The boundary types for the conservation equations
     * \param vertex The vertex for which the boundary type is set
     */
    void boundaryTypes(BoundaryTypes &values, const Vertex &vertex) const
    {
        const GlobalPosition globalPos = vertex.geometry().center();
            
        values.setAllNeumann();

        if(onRightBoundary_(globalPos))
            values.setAllDirichlet();
    } 

    bool onRightBoundary_(const GlobalPosition &globalPos) const
    { return globalPos[0] > bboxMax_[0] - eps_; }

_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to