<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>dfnTrans: Docs_PT/ParticleTracking_source/RotateFracture.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link rel="search" href="search_opensearch.php?v=opensearch.xml" type="application/opensearchdescription+xml" title="dfnTrans"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">dfnTrans
   </div>
   <div id="projectbrief">Code for Particle Tracking simulations in 3D DFN</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,true,'search.php','Search');
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() {
    if ($('.searchresults').length > 0) { searchBox.DOMSearchField().focus(); }
  });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_rotate_fracture_8c.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">RotateFracture.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;search.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;math.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &quot;<a class="el" href="_func_def_8h_source.html">FuncDef.h</a>&quot;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
</div>
<p><a href="_rotate_fracture_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structposit3d.html">posit3d</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a544594dde0a4f38fb12c863f7c395fd6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_rotate_fracture_8c.html#a544594dde0a4f38fb12c863f7c395fd6">Convertto2d</a> ()</td></tr>
<tr class="separator:a544594dde0a4f38fb12c863f7c395fd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac21ac13cf8f1cb96197713aa59131247"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_rotate_fracture_8c.html#ac21ac13cf8f1cb96197713aa59131247">Convertto3d</a> ()</td></tr>
<tr class="separator:ac21ac13cf8f1cb96197713aa59131247"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ac46448269e65b5766a3e49942c28e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_rotate_fracture_8c.html#a6ac46448269e65b5766a3e49942c28e7">ChangeFracture</a> (int cell_win)</td></tr>
<tr class="separator:a6ac46448269e65b5766a3e49942c28e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8cd5b8e207b47b4a0ad1052040d16e9"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structposit3d.html">posit3d</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_rotate_fracture_8c.html#aa8cd5b8e207b47b4a0ad1052040d16e9">CalculatePosition3D</a> ()</td></tr>
<tr class="separator:aa8cd5b8e207b47b4a0ad1052040d16e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa32bb7cee88e4c860b955eb1a3be9b62"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_rotate_fracture_8c.html#aa32bb7cee88e4c860b955eb1a3be9b62">Velocity3D</a> ()</td></tr>
<tr class="separator:aa32bb7cee88e4c860b955eb1a3be9b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8de9963c8d396e510b962001d412fc37"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structposit3d.html">posit3d</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_rotate_fracture_8c.html#a8de9963c8d396e510b962001d412fc37">CalculateVelocity3D</a> ()</td></tr>
<tr class="separator:a8de9963c8d396e510b962001d412fc37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1991461f9a5546ec57dc497b6bdcae14"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_rotate_fracture_8c.html#a1991461f9a5546ec57dc497b6bdcae14">Coordinations2D</a> ()</td></tr>
<tr class="separator:a1991461f9a5546ec57dc497b6bdcae14"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="aa8cd5b8e207b47b4a0ad1052040d16e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8cd5b8e207b47b4a0ad1052040d16e9">&#9670;&nbsp;</a></span>CalculatePosition3D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structposit3d.html">posit3d</a> CalculatePosition3D </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Function calculates 3D coordinates of current particle's position at 2D fracture plane </p>

<p class="definition">Definition at line <a class="el" href="_rotate_fracture_8c_source.html#l00213">213</a> of file <a class="el" href="_rotate_fracture_8c_source.html">RotateFracture.c</a>.</p>

</div>
</div>
<a id="a8de9963c8d396e510b962001d412fc37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8de9963c8d396e510b962001d412fc37">&#9670;&nbsp;</a></span>CalculateVelocity3D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structposit3d.html">posit3d</a> CalculateVelocity3D </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The function converts particle's 2D velocity vector to 3D velocity vector </p>

<p class="definition">Definition at line <a class="el" href="_rotate_fracture_8c_source.html#l00335">335</a> of file <a class="el" href="_rotate_fracture_8c_source.html">RotateFracture.c</a>.</p>

</div>
</div>
<a id="a6ac46448269e65b5766a3e49942c28e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ac46448269e65b5766a3e49942c28e7">&#9670;&nbsp;</a></span>ChangeFracture()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ChangeFracture </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cell_win</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function recalculates particles coordinations at intersection lines. Particles XY coordinations at one fracture are recalculated to 3D positions and then new XY coordinations of an intersecting fracture are defined. </p>

<p class="definition">Definition at line <a class="el" href="_rotate_fracture_8c_source.html#l00183">183</a> of file <a class="el" href="_rotate_fracture_8c_source.html">RotateFracture.c</a>.</p>

</div>
</div>
<a id="a544594dde0a4f38fb12c863f7c395fd6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a544594dde0a4f38fb12c863f7c395fd6">&#9670;&nbsp;</a></span>Convertto2d()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Convertto2d </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The function uses rotation matrix and fracture's normal vector to rotate fracture from its position in 3D to XY plane </p>
<p>if node belongs to intersection, belongs to two fractures </p>

<p class="definition">Definition at line <a class="el" href="_rotate_fracture_8c_source.html#l00017">17</a> of file <a class="el" href="_rotate_fracture_8c_source.html">RotateFracture.c</a>.</p>

</div>
</div>
<a id="ac21ac13cf8f1cb96197713aa59131247"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac21ac13cf8f1cb96197713aa59131247">&#9670;&nbsp;</a></span>Convertto3d()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Convertto3d </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The function uses rotation matrix to rotate fracture from its position in XY plane to 3D domain </p>

<p class="definition">Definition at line <a class="el" href="_rotate_fracture_8c_source.html#l00130">130</a> of file <a class="el" href="_rotate_fracture_8c_source.html">RotateFracture.c</a>.</p>

</div>
</div>
<a id="a1991461f9a5546ec57dc497b6bdcae14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1991461f9a5546ec57dc497b6bdcae14">&#9670;&nbsp;</a></span>Coordinations2D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Coordinations2D </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The function outputs 2D coordinations of nodes: every fracture into separate file. Those files are used as input to gstat for length correlation of aperture. </p>

<p class="definition">Definition at line <a class="el" href="_rotate_fracture_8c_source.html#l00360">360</a> of file <a class="el" href="_rotate_fracture_8c_source.html">RotateFracture.c</a>.</p>

</div>
</div>
<a id="aa32bb7cee88e4c860b955eb1a3be9b62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa32bb7cee88e4c860b955eb1a3be9b62">&#9670;&nbsp;</a></span>Velocity3D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Velocity3D </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Recalculates 2D velocities at XY fracture plane to 3D velocties in the simulation domain. This procedure is not used for particle tracking, but can be used for velocity field visualization. </p>

<p class="definition">Definition at line <a class="el" href="_rotate_fracture_8c_source.html#l00246">246</a> of file <a class="el" href="_rotate_fracture_8c_source.html">RotateFracture.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_f80ddb2df819b297fd9c7beccba09984.html">Docs_PT</a></li><li class="navelem"><a class="el" href="dir_966eb28a5fc4cd2ac9e3086fcb212f97.html">ParticleTracking_source</a></li><li class="navelem"><a class="el" href="_rotate_fracture_8c.html">RotateFracture.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
