这个PV图该如何画?

这个PV图该如何画?

我无法通过 latex 绘制 PV 图。有人能帮我编写代码吗?在此处输入图片描述

我感谢您的帮助!

答案1

V1略有不同的版本。我尝试模仿和之间稍长的间隙V2。因此,基本上弧线不是规则的,而是像椭圆的一部分(其中心是T2)。

输出

在此处输入图片描述

代码

\documentclass[margin=10pt]{standalone}
\usepackage{tikz}

\usetikzlibrary{decorations.markings, arrows, arrows.meta}

\tikzset{
    midar/.style 2 args={
        very thick,
        decoration={name=markings,
        mark=at position .55 with {\arrow{latex}},
        mark=at position 0 with {\fill circle (2pt);},
        mark=at position 1 with {\fill circle (2pt);}}
        ,postaction=decorate,
    },
}

\begin{document}
\begin{tikzpicture}[thick]
    \draw[-{Latex}] (0,0) -- (0,4.5) node[above right] {$p$};
    \draw[-{Latex}] (0,0) -- (5,0) node[right] {$V$};

    \draw[dashed] (0,4) node[left] {$p_{1}$} -| (2,0) node[below] {$V_{1}$};
    \draw[dashed] (0,2) node[left] {$p_{3}$} -| (4.5,0) node[below] {$V_{2}$};

\draw[midar] (2,4) node[above left]{1} node[above right]{$T_1$} -- 
    (4.5,4) node[above left]{2} node[above right]{$T_2$};   
\draw[midar] (4.5,4) -- (4.5,2) node[above right]{3} node[below right]{$T_1$};
\draw[midar] (4.5,2) arc (270:180:2.5 and 2);
\end{tikzpicture}
\end{document}

答案2

虽然不完美,但应该可以给你一个起点。

\documentclass{article}
\usepackage{tikz,newtxmath}
\usetikzlibrary{arrows,decorations.markings}
\begin{document}
\begin{tikzpicture}[
  > = latex,
  dot/.style = {draw,fill,circle,inner sep=1pt},
  arrow inside/.style = {postaction=decorate,decoration={markings,mark=at position .55 with \arrow{>}}}
  ]
  \draw[<->] (0,4.3) node[above right] {$p$} |- (4.3,0) node[right] {$V$};
  \draw[dashed] (0,4) node[left] {$p_1$} -- (4,4);
  \draw[dashed] (0,2) node[left] {$p_3$} -- (4,2);
  \draw[dashed] (4,0) node[below] {$V_2$} -- (4,4);
  \draw[dashed] (2,0) node[below] {$V_1$} -- (2,4);
  \node[dot,label={above:$1$},label={above right:$T_1$}] (@1) at (2,4) {};
  \node[dot,label={right:$2$},label={above right:$T_2$}] (@2) at (4,4) {};
  \node[dot,label={right:$3$},label={above right:$T_3$}] (@3) at (4,2) {};
  \draw[arrow inside] (@1) -- (@2);
  \draw[arrow inside] (@2) -- (@3);
  \draw[arrow inside] (@3) to[out=180,in=-90] (@1);
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容