File:CoreyExampleForRelativePermeability.png

Summary

Description
English: Example of the Corey approxmation for relative permeability in porous medium.
Date
Source Own work
Author Berland


Source code

Made in Latex, tikz and pgfplots:

\documentclass{minimal}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\centering
\begin{tikzpicture}
  \begin{axis}[height=5cm,width=5cm,
    xmin=0,xmax=1,ymin=0,ymax=1,samples=200,
    xlabel=$S_{wn}$, ylabel=$K_r$,
    scale only axis,axis y line=left]
  \end{axis}
  \begin{axis}
    [height=5cm,width=5cm,
    xmin=0,xmax=1,ymin=0,ymax=1,
    scale only axis,axis y line=right,
    axis x line=none,samples=200,grid=both]
    \addplot[thick,blue] {0.6*x^2};
    \addplot[thick,red] {(1-x)^2};
    \node[name=Krwo] at (axis cs:0.85,0.6) {$K_{rw}^o$};
    \draw[thick,->] (Krwo) -- (axis cs:0.98,0.6);
    \legend{$K_{rw} = K_{rw}^o S_{wn}^2$, $K_{row}=(1-S_{wn})^2$}
  \end{axis}
\end{tikzpicture}
\end{document}

Then run the commands:

pdflatex corey.tex
pdftoppm -r 600 corey.pdf corey-untrimmed
convert -trim corey-untrimmed-1.ppm corey.png

Conversion to SVG should be done when tools mature. I tried with inkscape, but the resulting SVG was buggy.

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-3.0#CoreyExampleForRelativePermeability.png
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
Category:License migration redundant#CoreyExampleForRelativePermeability.pngCategory:GFDL#CoreyExampleForRelativePermeability.png
You may select the license of your choice.
Category:Self-published work
Category:Multiphase flow Category:TikZ graphics Category:Images with LaTeX source code Category:Graph images that should use vector graphics
Category:CC-BY-SA-3.0 Category:GFDL Category:Graph images that should use vector graphics Category:Images with LaTeX source code Category:License migration redundant Category:Multiphase flow Category:Pages using deprecated source tags Category:Self-published work Category:TikZ graphics