diff options
Expand, visualize simulation domain definition
Diffstat (limited to 'img')
-rw-r--r-- | img/invalid_overlap_area.tikz | 2 | ||||
-rw-r--r-- | img/simulation_domain.tikz | 62 |
2 files changed, 63 insertions, 1 deletions
diff --git a/img/invalid_overlap_area.tikz b/img/invalid_overlap_area.tikz index f8ad72b..67acac7 100644 --- a/img/invalid_overlap_area.tikz +++ b/img/invalid_overlap_area.tikz @@ -14,5 +14,5 @@ \node[fine] at (1.5+\x*0.5,\y*0.5){ }; \draw[arrow] (1.5,2.8) node[right] {Feine Knoten in \(\partial D_f \not\subset \partial D_g^\circ\)} -- (1.5,2.3); -\draw[dashed,thick] (1.3,-0.2) rectangle (1.7,2.2); +\draw[dashed,thick,pattern=north west lines, pattern color=red] (1.3,-0.2) rectangle (1.7,2.2); \end{tikzpicture} diff --git a/img/simulation_domain.tikz b/img/simulation_domain.tikz new file mode 100644 index 0000000..f989664 --- /dev/null +++ b/img/simulation_domain.tikz @@ -0,0 +1,62 @@ +\begin{tikzpicture}[ + scale=0.9, + x={(-10:1cm)},y={(220:1cm)},z={(90:1cm)}, + coarse/.style={circle,draw=black,inner sep=2}, + fine/.style={cross out,draw=black,inner sep=1}, +] + +\draw[opacity=0.5,dotted] (0,0,-2) -- (0,0,0); +\draw[opacity=0.5,dotted] (0,5,-2) -- (0,5,0); +\draw[opacity=0.5,dotted] (5,0,-2) -- (5,0,0); +\draw[opacity=0.5,dotted] (5,5,-2) -- (5,5,0); + +\draw[opacity=0.5,dotted] (1,1,-2) -- (1,1,4); +\draw[opacity=0.5,dotted] (1,4,-2) -- (1,4,4); +\draw[opacity=0.5,dotted] (4,1,-2) -- (4,1,4); +\draw[opacity=0.5,dotted] (4,4,-2) -- (4,4,4); + +\draw[opacity=0.5,dotted] (1.5,1.5,-2) -- (1.5,1.5,2); +\draw[opacity=0.5,dotted] (1.5,3.5,-2) -- (1.5,3.5,2); +\draw[opacity=0.5,dotted] (3.5,1.5,-2) -- (3.5,1.5,2); +\draw[opacity=0.5,dotted] (3.5,3.5,-2) -- (3.5,3.5,2); + +\begin{scope}[xyp=-2] +\foreach \x in {0,...,10} + \foreach \y in {0,...,10}{ + \ifthenelse{\x>6 \OR \x<4 \OR \y>6 \OR \y<4}{ + \node[coarse] at (0.5*\x,0.5*\y){ }; + }{} + } + +\foreach \x in {0,...,12} + \foreach \y in {0,...,12}{ + \node[fine] at (1+0.25*\x,1+0.25*\y){ }; + } + +\node[right] at (6,0) {Gitter \(\G\) und \(\F\)}; +\end{scope} + +\begin{scope}[xyp=0] +\fill[opacity=0.6,gray,even odd rule] (0,0) rectangle (5,5) (1.5,1.5) rectangle (3.5,3.5); +\draw[thick,even odd rule] (0,0) rectangle (5,5) (1.5,1.5) rectangle (3.5,3.5); +\draw[dashed] (1,1) rectangle (4,4); +\draw[pattern=north east lines,even odd rule] (1,1) rectangle (4,4) (1.5,1.5) rectangle (3.5,3.5); + +\node[right] at (6,0) {Grobe Domäne \(D_g\)}; +\end{scope} + +\begin{scope}[xyp=2] +\fill[thick,opacity=0.6,gray,even odd rule] (1,1) rectangle (4,4) (1.5,1.5) rectangle (3.5,3.5); +\draw[thick] (1,1) rectangle (4,4) (1.5,1.5) rectangle (3.5,3.5); + +\node[right] at (6,0) {Übergangsbereich \(D_g \cap D_f\)}; +\end{scope} + +\begin{scope}[xyp=4] +\draw[thick] (1,1) rectangle (4,4); +\fill[opacity=0.6,gray] (1,1) rectangle (4,4); + +\node[right] at (6,0) {Feine Domäne \(D_f\)}; +\end{scope} + +\end{tikzpicture} |