[cig-commits] commit: Started work on cohesive cell figure.

Mercurial hg at geodynamics.org
Tue Mar 27 16:33:57 PDT 2012


changeset:   85:e9cdc0e6d25e
tag:         tip
user:        Brad Aagaard <baagaard at usgs.gov>
date:        Tue Mar 27 16:33:48 2012 -0700
files:       figs/cohesivecell.tex figs/figcolors.tex
description:
Started work on cohesive cell figure.


diff -r 3962a398ee5b -r e9cdc0e6d25e figs/cohesivecell.tex
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/figs/cohesivecell.tex	Tue Mar 27 16:33:48 2012 -0700
@@ -0,0 +1,241 @@
+\documentclass{article}
+\usepackage{tikz}
+
+\begin{document}
+
+
+\input{figstyle}
+
+\begin{tikzpicture}
+
+\usetikzlibrary{shapes,fit,calc}%
+
+\tikzstyle{vertex}=[circle,color=mdslate,fill=mdslate,inner sep=2pt]
+
+\tikzstyle{vertexf}=[circle,color=red,fill=red,inner sep=2pt]
+\tikzstyle{vertexp}=[circle,color=red,fill=red,inner sep=2pt]
+\tikzstyle{vertexn}=[circle,color=blue,fill=blue,inner sep=2pt]
+\tikzstyle{vertexl}=[circle,color=orange,fill=orange,inner sep=2pt]
+
+\tikzstyle{cell}=[color=black]
+
+\tikzstyle{cellp}=[fill=red,opacity=0.25]
+\tikzstyle{celln}=[fill=blue,opacity=0.25]
+
+% Reference points
+\coordinate (o1) at (-60mm,0mm);
+\coordinate (o2) at (-20mm,0mm);
+\coordinate (o3) at (+20mm,0mm);
+\coordinate (o4) at (+60mm,0mm);
+
+
+% ----------------------------------------------------------------------
+% Original mesh
+
+% Vertices
+\node[vertexf] (v1) at ($ (o1)+(0mm,+15mm) $) {};
+\node[vertexf] (v2) at (o1) {};
+\node[vertexf] (v3) at ($ (o1)+(0mm,-15mm) $) {};
+
+\node[vertex] (v4) at ($ (o1)+(-11.25mm,+7.5mm) $) {};
+\node[vertex] (v5) at ($ (o1)+(-11.25mm,-7.5mm) $) {};
+\node[vertex] (v6) at ($ (o1)+(+11.25mm,+7.5mm) $) {};
+\node[vertex] (v7) at ($ (o1)+(+11.25mm,-7.5mm) $) {};
+
+\node[vertex] (v8) at ($ (o1)+(-7.5mm,+26.25mm) $) {};
+\node[vertex] (v9) at ($ (o1)+(+7.5mm,+26.25mm) $) {};
+
+\node[vertex] (v10) at ($ (o1)+(-7.5mm,-26.25mm) $) {};
+\node[vertex] (v11) at ($ (o1)+(+7.5mm,-26.25mm) $) {};
+
+% Cells
+\draw [cell] (v1) -- (v4) -- (v2) -- (v1);
+\draw [cell]  (v2) -- (v5) -- (v3) -- (v2);
+\draw [cell]  (v1) -- (v2) -- (v6) -- (v1);
+\draw [cell]  (v2) -- (v3) -- (v7) -- (v2);
+
+\draw [cell]  (v1) -- (v9) -- (v8) -- (v1);
+\draw [cell]  (v1) -- (v8) -- (v4) -- (v1);
+\draw [cell]  (v2) -- (v4) -- (v5) -- (v2);
+\draw [cell]  (v3) -- (v5) -- (v10) -- (v3);
+\draw [cell]  (v3) -- (v10) -- (v11) -- (v3);
+\draw [cell]  (v3) -- (v11) -- (v7) -- (v3);
+\draw [cell]  (v2) -- (v7) -- (v6) -- (v2);
+\draw [cell]  (v1) -- (v6) -- (v9) -- (v1);
+
+\node(fvlabel) [label,color=red] at ($ (o1)+(-10mm,-35mm) $) {fault vertex};
+\path [color=red,->] (fvlabel) edge [bend right] (v3);
+
+% ----------------------------------------------------------------------
+% Add vertices, create cohesive cell
+
+% Vertices
+\node[vertexl] (v7) at ($ (o2)+(0mm,+15mm) $) {};
+\node[vertexl] (v8) at (o2) {};
+\node[vertexl] (v9) at ($ (o2)+(0mm,-15mm) $) {};
+
+\node[vertexn] (v4) at ($ (o2)+(0mm,+15mm)-(3mm,0mm) $) {};
+\node[vertexn] (v5) at ($ (o2)-(3mm,0mm) $) {};
+\node[vertexn] (v6) at ($ (o2)+(0mm,-15mm)-(3mm,0mm) $) {};
+
+\node[vertexp] (v1) at ($ (o2)+(0mm,+15mm)+(3mm,0mm) $) {};
+\node[vertexp] (v2) at ($ (o2)+(3mm,0mm) $) {};
+\node[vertexp] (v3) at ($ (o2)+(0mm,-15mm)+(3mm,0mm) $) {};
+
+% surface and edges
+\draw [color=red,very thick] (v1) -- (v2) -- (v3);
+\draw [color=blue,very thick] (v4) -- (v5) -- (v6);
+\draw [color=black] (v1) -- (v7) -- (v4);
+\draw [color=black] (v2) -- (v8) -- (v5);
+\draw [color=black] (v3) -- (v9) -- (v6);
+
+% ----------------------------------------------------------------------
+% Update cells with faces on fault
+
+\coordinate (p1) at ($ (o3)+(0mm,+15mm)+(2mm,0mm) $);
+\coordinate (p2) at ($ (o3)+(2mm,0mm) $);
+\coordinate (p3) at ($ (o3)+(0mm,-15mm)+(2mm,0mm) $);
+
+\coordinate (p4) at ($ (o3)+(0mm,+15mm)-(2mm,0mm) $);
+\coordinate (p5) at ($ (o3)-(2mm,0mm) $);
+\coordinate (p6) at ($ (o3)+(0mm,-15mm)-(2mm,0mm) $);
+
+\coordinate (p7) at ($ (o3)+(0mm,+15mm) $);
+\coordinate (p8) at (o3);
+\coordinate (p9) at ($ (o3)+(0mm,-15mm) $);
+
+\coordinate (p10) at ($ (o3)+(-11.25mm,+7.5mm) $);
+\coordinate (p11) at ($ (o3)+(-11.25mm,-7.5mm) $);
+\coordinate (p12) at ($ (o3)+(+11.25mm,+7.5mm) $);
+\coordinate (p13) at ($ (o3)+(+11.25mm,-7.5mm) $);
+
+
+% Vertices
+\node[vertexl] (v7) at (p7) {};
+\node[vertexl] (v8) at (p8) {};
+\node[vertexl] (v9) at (p9) {};
+
+\node[vertexn] (v4) at (p4) {};
+\node[vertexn] (v5) at (p5) {};
+\node[vertexn] (v6) at (p6) {};
+
+\node[vertexp] (v1) at (p1) {};
+\node[vertexp] (v2) at (p2) {};
+\node[vertexp] (v3) at (p3) {};
+
+\node[vertex] (v10) at (p10) {};
+\node[vertex] (v11) at (p11) {};
+\node[vertex] (v12) at (p12) {};
+\node[vertex] (v13) at (p13) {};
+
+% surface and edges
+\draw [color=red,very thick] (v1) -- (v2) -- (v3);
+\draw [color=blue,very thick] (v4) -- (v5) -- (v6);
+\draw [color=black] (v1) -- (v7) -- (v4);
+\draw [color=black] (v2) -- (v8) -- (v5);
+\draw [color=black] (v3) -- (v9) -- (v6);
+
+% cells
+\fill [celln] (p5) -- (p4) -- (p10) -- cycle;
+\fill [celln] (p6) -- (p5) -- (p11) -- cycle;
+\fill [cellp] (p1) -- (p2) -- (p12) -- cycle;
+\fill [cellp] (p2) -- (p3) -- (p13) -- cycle;
+
+\draw [cell] (p5) -- (p4) -- (p10) -- cycle;
+\draw [cell] (p6) -- (p5) -- (p11) -- cycle;
+\draw [cell] (p1) -- (p2) -- (p12) -- cycle;
+\draw [cell] (p2) -- (p3) -- (p13) -- cycle;
+
+
+
+% ----------------------------------------------------------------------
+% Classify cells and update other cells
+
+\coordinate (p1) at ($ (o4)+(0mm,+15mm)+(2mm,0mm) $);
+\coordinate (p2) at ($ (o4)+(2mm,0mm) $);
+\coordinate (p3) at ($ (o4)+(0mm,-15mm)+(2mm,0mm) $);
+
+\coordinate (p4) at ($ (o4)+(0mm,+15mm)-(2mm,0mm) $);
+\coordinate (p5) at ($ (o4)-(2mm,0mm) $);
+\coordinate (p6) at ($ (o4)+(0mm,-15mm)-(2mm,0mm) $);
+
+\coordinate (p7) at ($ (o4)+(0mm,+15mm) $);
+\coordinate (p8) at (o4);
+\coordinate (p9) at ($ (o4)+(0mm,-15mm) $);
+
+\coordinate (p10) at ($ (o4)+(-11.25mm,+7.5mm) $);
+\coordinate (p11) at ($ (o4)+(-11.25mm,-7.5mm) $);
+\coordinate (p12) at ($ (o4)+(+11.25mm,+7.5mm) $);
+\coordinate (p13) at ($ (o4)+(+11.25mm,-7.5mm) $);
+
+\coordinate (p14) at ($ (o4)+(-7.5mm,+26.25mm) $);
+\coordinate (p15) at ($ (o4)+(+7.5mm,+26.25mm) $);
+
+\coordinate (p16) at ($ (o4)+(-7.5mm,-26.25mm) $);
+\coordinate (p17) at ($ (o4)+(+7.5mm,-26.25mm) $);
+
+% Vertices
+\node[vertexl] (v7) at (p7) {};
+\node[vertexl] (v8) at (p8) {};
+\node[vertexl] (v9) at (p9) {};
+
+\node[vertexn] (v4) at (p4) {};
+\node[vertexn] (v5) at (p5) {};
+\node[vertexn] (v6) at (p6) {};
+
+\node[vertexp] (v1) at (p1) {};
+\node[vertexp] (v2) at (p2) {};
+\node[vertexp] (v3) at (p3) {};
+
+\node[vertex] (v10) at (p10) {};
+\node[vertex] (v11) at (p11) {};
+\node[vertex] (v12) at (p12) {};
+\node[vertex] (v13) at (p13) {};
+
+\node[vertex] (v14) at (p14) {};
+\node[vertex] (v15) at (p15) {};
+
+\node[vertex] (v16) at (p16) {};
+\node[vertex] (v17) at (p17) {};
+
+% surface and edges
+\draw [color=red,very thick] (v1) -- (v2) -- (v3);
+\draw [color=blue,very thick] (v4) -- (v5) -- (v6);
+\draw [color=black] (v1) -- (v7) -- (v4);
+\draw [color=black] (v2) -- (v8) -- (v5);
+\draw [color=black] (v3) -- (v9) -- (v6);
+
+% cells
+\fill [celln] (p5) -- (p4) -- (p10) -- cycle;
+\fill [celln] (p6) -- (p5) -- (p11) -- cycle;
+\fill [cellp] (p1) -- (p2) -- (p12) -- cycle;
+\fill [cellp] (p2) -- (p3) -- (p13) -- cycle;
+
+\fill [celln] (p4) -- (p14) -- (p10) -- cycle;
+\fill [celln] (p5) -- (p10) -- (p11) -- cycle;
+\fill [celln] (p6) -- (p11) -- (p16) -- cycle;
+\fill [celln] (p6) -- (p16) -- (p17) -- cycle;
+
+\fill [cellp] (p3) -- (p17) -- (p13) -- cycle;
+\fill [cellp] (p2) -- (p13) -- (p12) -- cycle;
+\fill [cellp] (p1) -- (p12) -- (p15) -- cycle;
+\fill [cellp] (p1) -- (p15) -- (p14) -- cycle;
+
+\draw [cell] (p5) -- (p4) -- (p10) -- cycle;
+\draw [cell] (p6) -- (p5) -- (p11) -- cycle;
+\draw [cell] (p1) -- (p2) -- (p12) -- cycle;
+\draw [cell] (p2) -- (p3) -- (p13) -- cycle;
+
+\draw [cell] (p4) -- (p14) -- (p10) -- cycle;
+\draw [cell] (p5) -- (p10) -- (p11) -- cycle;
+\draw [cell] (p6) -- (p11) -- (p16) -- cycle;
+\draw [cell] (p6) -- (p16) -- (p17) -- cycle;
+
+\draw [cell] (p3) -- (p17) -- (p13) -- cycle;
+\draw [cell] (p2) -- (p13) -- (p12) -- cycle;
+\draw [cell] (p1) -- (p12) -- (p15) -- cycle;
+\draw [cell] (p1) -- (p15) -- (p14) -- cycle;
+
+
+\end{tikzpicture}
+\end{document}
diff -r 3962a398ee5b -r e9cdc0e6d25e figs/figcolors.tex
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/figs/figcolors.tex	Tue Mar 27 16:33:48 2012 -0700
@@ -0,0 +1,19 @@
+\definecolor{yellow}{rgb}{1.0, 1.0, 0.45} % 255/255/115
+\definecolor{dkyellow}{rgb}{0.9, 0.9, 0.0} % % 230/230/0
+
+\definecolor{ltorange}{rgb}{1.0, 0.74, 0.41} % 255/188/105
+\definecolor{orange}{rgb}{0.96, 0.50, 0.0} % 246/127/0
+
+\definecolor{ltred}{rgb}{1.0, 0.25, 0.25} % 255/64/64
+\definecolor{red}{rgb}{0.79, 0.00, 0.01} % 201/0/3
+
+\definecolor{ltblue}{rgb}{0.2, 0.73, 1.0} % 51/187/255
+\definecolor{blue}{rgb}{0.12, 0.43, 0.59} % 30/110/150
+
+\definecolor{ltltgreen}{rgb}{0.7, 1.00, 0.7} % 96/204/14
+\definecolor{ltgreen}{rgb}{0.37, 0.80, 0.05} % 96/204/14
+\definecolor{green}{rgb}{0.23, 0.49, 0.03} % 59/125/8
+  
+\definecolor{dkslate}{rgb}{0.18, 0.21, 0.28} % 47/53/72
+\definecolor{mdslate}{rgb}{0.45, 0.50, 0.68} % 114/127/173
+\definecolor{ltslate}{rgb}{0.85, 0.88, 0.95} % 216/225/229



More information about the CIG-COMMITS mailing list