Example: Bond graph

Published 2008-03-31 | Author: Umesh Rai

Demonstration of tzbondgraph.sty, a macro package for drawing bond graphs.

To compile the example you will need the following style file:

The macros are documented in the file bgElements.pdf (tex source)

Author:B. Umesh Rai

Download as: [PDF] [TEX]  •  [Open in Overleaf]

Bond graph

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% Demonstration of tzbondgraph.sty, a macro package for drawing bond graphs.
% Author: B. Umesh Rai
\documentclass{article}
\usepackage{tikz}
\usepackage{tzbondgraph}
\begin{document}

\begin{figure}
    \centering
    \begin{tikzpicture}
        \bgInput{S};
        \bgJn{S}{a}[1];
        \bgEx[0]{a}{b}{V_t}{e_t}{i_a}[left][1];
        \bgRfxr[-35]{awest}{c}{R}{R_a}{e_{ra}}{i_{a}}[above][2];
        \bgRex[90]{aeast}{d}{L}{L_a}{e_{la}}{i_a}[above][2];
        \bgMGfx[0]{a}{e}{e_1}{i_a}{T_e}{\omega}[1];
        \bgJn[1]{e}{f}[1];
        \bgEx[-45]{e}{g}{T_l}{T_l}{\omega}[above][2];
        \bgRfx[45]{feast}{c}{R}{B}{}{\omega}[above][2];
        \bgRex[90]{f}{d}{L}{J}{}{\omega}[above][2.5];
        \node (up) [point,above of=etop,xshift=-0.4cm,yshift=2.5cm]  {};
        \bgJn{up}{g}[1];
        \bgEx[0]{g}{h}{V_f}{e_f}{i_f}[left][1];
        \bgRfx[0]{h}{i}{R}{R_f}{e_{rf}}{i_f}[right][1];
        \bgRex[30]{h}{j}{L}{L_f}{e_{lf}}{i_f}[above][1];
        \node (sig) [point,above of=etop,yshift=2cm]  {};
        \draw (sig) -- node[rotate=90,left,yshift=0.2cm,near start] 
            {$K_\phi = K_f \times i_f $} (etop);
    \end{tikzpicture}\\
    \caption{Bond graph model of a DC motor}
\end{figure}

\end{document}

Comments

  • #1 aldous, September 1, 2009 at 7:11 a.m.

    bkt poe ganun parang ang gulo pede paki explain yan........^^

  • #2 horton, October 11, 2009 at 10:39 a.m.

    there is an error in \bgGex ,miss $ before and after #4 ++(0.1,0.25cm) node[right,rotate=#1] {\tiny$#4$}

Adding comments is currently not enabled.