Commit 9e24c12a authored by Udo Ziegler's avatar Udo Ziegler
Browse files

version 4.1 update

parent 3c418719
......@@ -2,8 +2,8 @@
<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.9.1"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NIRVANA: APdiffusionCoeffUser.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
......@@ -23,10 +23,9 @@
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">NIRVANA
&#160;<span id="projectnumber">4.0</span>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">NIRVANA<span id="projectnumber">&#160;4.1</span>
</div>
</td>
</tr>
......@@ -34,21 +33,22 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<!-- Generated by Doxygen 1.9.3 -->
<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','.html');
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @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 */
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
......@@ -62,7 +62,7 @@ $(function() {
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('APdiffusionCoeffUser_8c.html',''); initResizable(); });
/* @license-end */
</script>
......@@ -84,8 +84,7 @@ $(document).ready(function(){initNavTree('APdiffusionCoeffUser_8c.html',''); ini
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">APdiffusionCoeffUser.c File Reference</div> </div>
<div class="headertitle"><div class="title">APdiffusionCoeffUser.c File Reference</div></div>
</div><!--header-->
<div class="contents">
......@@ -94,20 +93,20 @@ $(document).ready(function(){initNavTree('APdiffusionCoeffUser_8c.html',''); ini
<p><a href="APdiffusionCoeffUser_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="func-members"></a>
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a05cc5b4317345db679dcf2d7bd278161"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="APdiffusionCoeffUser_8c.html#a05cc5b4317345db679dcf2d7bd278161">APdiffusionCoeffUser</a> (<a class="el" href="structgrid.html">GRD</a> *g, double ***APdiff)</td></tr>
<tr class="separator:a05cc5b4317345db679dcf2d7bd278161"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Copyright (C) 2020 Udo Ziegler</p>
<p>Category: Numerics.User</p>
<p>Version: 4</p>
<p>Public functions: <a class="el" href="APdiffusionCoeffUser_8c.html#a05cc5b4317345db679dcf2d7bd278161">APdiffusionCoeffUser()</a> </p>
<div class="textblock"><p >Copyright (C) 2020 Udo Ziegler</p>
<p >Category: Numerics.User</p>
<p >Version: 4</p>
<p >Public functions: <a class="el" href="APdiffusionCoeffUser_8c.html#a05cc5b4317345db679dcf2d7bd278161">APdiffusionCoeffUser()</a> </p>
<p class="definition">Definition in file <a class="el" href="APdiffusionCoeffUser_8c_source.html">APdiffusionCoeffUser.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a05cc5b4317345db679dcf2d7bd278161"></a>
<a id="a05cc5b4317345db679dcf2d7bd278161" name="a05cc5b4317345db679dcf2d7bd278161"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05cc5b4317345db679dcf2d7bd278161">&#9670;&nbsp;</a></span>APdiffusionCoeffUser()</h2>
<div class="memitem">
......@@ -132,7 +131,7 @@ Functions</h2></td></tr>
</tr>
</table>
</div><div class="memdoc">
<p>Template for a user-defined ambipolar diffusion coefficient.</p>
<p >Template for a user-defined ambipolar diffusion coefficient.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">g</td><td>grid pointer </td></tr>
......@@ -153,7 +152,7 @@ Functions</h2></td></tr>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_f7d5d8a0acfbd78d1833a12555a38329.html">nirvana</a></li><li class="navelem"><a class="el" href="APdiffusionCoeffUser_8c.html">APdiffusionCoeffUser.c</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
</ul>
</div>
</body>
......
......@@ -2,8 +2,8 @@
<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.9.1"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NIRVANA: APdiffusionCoeffUser.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
......@@ -23,10 +23,9 @@
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">NIRVANA
&#160;<span id="projectnumber">4.0</span>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">NIRVANA<span id="projectnumber">&#160;4.1</span>
</div>
</td>
</tr>
......@@ -34,21 +33,22 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<!-- Generated by Doxygen 1.9.3 -->
<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','.html');
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @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 */
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
......@@ -62,7 +62,7 @@ $(function() {
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('APdiffusionCoeffUser_8c_source.html',''); initResizable(); });
/* @license-end */
</script>
......@@ -82,65 +82,64 @@ $(document).ready(function(){initNavTree('APdiffusionCoeffUser_8c_source.html','
</div>
<div class="header">
<div class="headertitle">
<div class="title">APdiffusionCoeffUser.c</div> </div>
<div class="headertitle"><div class="title">APdiffusionCoeffUser.c</div></div>
</div><!--header-->
<div class="contents">
<a href="APdiffusionCoeffUser_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/** @file APdiffusionCoeffUser.c</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * @brief User-defined ambipolar diffusion coefficient</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Copyright (C) 2020 Udo Ziegler</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Category: Numerics.User</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * Version: 4</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Public functions: APdiffusionCoeffUser()</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="nirvana_8h.html">nirvana.h</a>&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">/*############################################################################*/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="APdiffusionCoeffUser_8c.html#a05cc5b4317345db679dcf2d7bd278161"> 20</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="APdiffusionCoeffUser_8c.html#a05cc5b4317345db679dcf2d7bd278161">APdiffusionCoeffUser</a>(<a class="code" href="structgrid.html">GRD</a> *g, <span class="keywordtype">double</span> ***APdiff)<span class="comment"></span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"> * Template for a user-defined ambipolar diffusion coefficient.</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment"> * @param g grid pointer</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment"> * @param APdiff pointer to array for the ambipolar diffusion coefficient</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment"> * @author Udo Ziegler, AIP</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment"> * @note The ambipolar diffusion coefficient is assumed a cell-centroid</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment"> * quantity measured in SI units [Vm/A/T^2].</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment"> * Example implementation: constant coefficient with value given by the</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment"> * input parameter _C.APdiffusion_coeff.</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;{</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keywordtype">int</span> ix,iy,iz;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment">/* MY IMPLEMENTATION */</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keywordflow">for</span>(iz=0; iz&lt;=g-&gt;nz; iz++)</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordflow">for</span>(iy=0; iy&lt;=g-&gt;ny; iy++) </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keywordflow">for</span>(ix=0; ix&lt;=g-&gt;nx; ix++)</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; APdiff[iz][iy][ix]=_C.APdiffusion_coeff;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;}</div>
<a href="APdiffusionCoeffUser_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/** @file APdiffusionCoeffUser.c</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> *</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * @brief User-defined ambipolar diffusion coefficient</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * Copyright (C) 2020 Udo Ziegler</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> *</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * Category: Numerics.User</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> *</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> * Version: 4</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> *</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> * Public functions: APdiffusionCoeffUser()</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> */</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include &lt;<a class="code" href="nirvana_8h.html">nirvana.h</a>&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">/*############################################################################*/</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="APdiffusionCoeffUser_8c.html#a05cc5b4317345db679dcf2d7bd278161"> 20</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="APdiffusionCoeffUser_8c.html#a05cc5b4317345db679dcf2d7bd278161">APdiffusionCoeffUser</a>(<a class="code hl_struct" href="structgrid.html">GRD</a> *g, <span class="keywordtype">double</span> ***APdiff)<span class="comment"></span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="comment">/**</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="comment"> * Template for a user-defined ambipolar diffusion coefficient.</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="comment"> *</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="comment"> * @param g grid pointer</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="comment"> * @param APdiff pointer to array for the ambipolar diffusion coefficient</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="comment"> *</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="comment"> * @author Udo Ziegler, AIP</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="comment"> *</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="comment"> * @note The ambipolar diffusion coefficient is assumed a cell-centroid</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="comment"> * quantity measured in SI units [Vm/A/T^2].</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="comment"> * Example implementation: constant coefficient with value given by the</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="comment"> * input parameter _C.APdiffusion_coeff.</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="comment"> */</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span>{</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keywordtype">int</span> ix,iy,iz;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="comment">/* MY IMPLEMENTATION */</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="keywordflow">for</span>(iz=0; iz&lt;=g-&gt;nz; iz++)</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">for</span>(iy=0; iy&lt;=g-&gt;ny; iy++) </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordflow">for</span>(ix=0; ix&lt;=g-&gt;nx; ix++)</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> APdiff[iz][iy][ix]=_C.APdiffusion_coeff;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span>}</div>
<div class="ttc" id="aAPdiffusionCoeffUser_8c_html_a05cc5b4317345db679dcf2d7bd278161"><div class="ttname"><a href="APdiffusionCoeffUser_8c.html#a05cc5b4317345db679dcf2d7bd278161">APdiffusionCoeffUser</a></div><div class="ttdeci">void APdiffusionCoeffUser(GRD *g, double ***APdiff)</div><div class="ttdef"><b>Definition:</b> <a href="APdiffusionCoeffUser_8c_source.html#l00020">APdiffusionCoeffUser.c:20</a></div></div>
<div class="ttc" id="anirvana_8h_html"><div class="ttname"><a href="nirvana_8h.html">nirvana.h</a></div><div class="ttdoc">NIRVANA main header.</div></div>
<div class="ttc" id="astructgrid_html"><div class="ttname"><a href="structgrid.html">grid</a></div><div class="ttdef"><b>Definition:</b> <a href="nirvana_8h_source.html#l00244">nirvana.h:245</a></div></div>
<div class="ttc" id="astructgrid_html"><div class="ttname"><a href="structgrid.html">grid</a></div><div class="ttdef"><b>Definition:</b> <a href="nirvana_8h_source.html#l00251">nirvana.h:252</a></div></div>
</div><!-- fragment --></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_f7d5d8a0acfbd78d1833a12555a38329.html">nirvana</a></li><li class="navelem"><a class="el" href="APdiffusionCoeffUser_8c.html">APdiffusionCoeffUser.c</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
</ul>
</div>
</body>
......
......@@ -2,8 +2,8 @@
<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.9.1"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NIRVANA: APdiffusionCoeff.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
......@@ -23,10 +23,9 @@
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">NIRVANA
&#160;<span id="projectnumber">4.0</span>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">NIRVANA<span id="projectnumber">&#160;4.1</span>
</div>
</td>
</tr>
......@@ -34,21 +33,22 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<!-- Generated by Doxygen 1.9.3 -->
<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','.html');
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @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 */
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
......@@ -62,7 +62,7 @@ $(function() {
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('APdiffusionCoeff_8c.html',''); initResizable(); });
/* @license-end */
</script>
......@@ -84,8 +84,7 @@ $(document).ready(function(){initNavTree('APdiffusionCoeff_8c.html',''); initRes
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">APdiffusionCoeff.c File Reference</div> </div>
<div class="headertitle"><div class="title">APdiffusionCoeff.c File Reference</div></div>
</div><!--header-->
<div class="contents">
......@@ -94,20 +93,20 @@ $(document).ready(function(){initNavTree('APdiffusionCoeff_8c.html',''); initRes
<p><a href="APdiffusionCoeff_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="func-members"></a>
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a775b0393e3a1b106fefa7c5da010d361"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="APdiffusionCoeff_8c.html#a775b0393e3a1b106fefa7c5da010d361">APdiffusionCoeff</a> (<a class="el" href="structgrid.html">GRD</a> *g, double ***APdiff)</td></tr>
<tr class="separator:a775b0393e3a1b106fefa7c5da010d361"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Copyright (C) 2020 Udo Ziegler</p>
<p>Category: Numerics</p>
<p>Version: 4</p>
<p>Public functions: <a class="el" href="APdiffusionCoeff_8c.html#a775b0393e3a1b106fefa7c5da010d361">APdiffusionCoeff()</a> </p>
<div class="textblock"><p >Copyright (C) 2020 Udo Ziegler</p>
<p >Category: Numerics</p>
<p >Version: 4</p>
<p >Public functions: <a class="el" href="APdiffusionCoeff_8c.html#a775b0393e3a1b106fefa7c5da010d361">APdiffusionCoeff()</a> </p>
<p class="definition">Definition in file <a class="el" href="APdiffusionCoeff_8c_source.html">APdiffusionCoeff.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a775b0393e3a1b106fefa7c5da010d361"></a>
<a id="a775b0393e3a1b106fefa7c5da010d361" name="a775b0393e3a1b106fefa7c5da010d361"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a775b0393e3a1b106fefa7c5da010d361">&#9670;&nbsp;</a></span>APdiffusionCoeff()</h2>
<div class="memitem">
......@@ -132,7 +131,7 @@ Functions</h2></td></tr>
</tr>
</table>
</div><div class="memdoc">
<p>Computation of the ambipolar diffusion coefficient.</p>
<p >Computation of the ambipolar diffusion coefficient.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">g</td><td>grid pointer </td></tr>
......@@ -153,7 +152,7 @@ Functions</h2></td></tr>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_f7d5d8a0acfbd78d1833a12555a38329.html">nirvana</a></li><li class="navelem"><a class="el" href="APdiffusionCoeff_8c.html">APdiffusionCoeff.c</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
</ul>
</div>
</body>
......
......@@ -2,8 +2,8 @@
<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.9.1"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NIRVANA: APdiffusionCoeff.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
......@@ -23,10 +23,9 @@
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">NIRVANA
&#160;<span id="projectnumber">4.0</span>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">NIRVANA<span id="projectnumber">&#160;4.1</span>
</div>
</td>
</tr>
......@@ -34,21 +33,22 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<!-- Generated by Doxygen 1.9.3 -->
<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','.html');
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @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 */
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
......@@ -62,7 +62,7 @@ $(function() {
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('APdiffusionCoeff_8c_source.html',''); initResizable(); });
/* @license-end */
</script>
......@@ -82,66 +82,65 @@ $(document).ready(function(){initNavTree('APdiffusionCoeff_8c_source.html','');
</div>
<div class="header">
<div class="headertitle">
<div class="title">APdiffusionCoeff.c</div> </div>
<div class="headertitle"><div class="title">APdiffusionCoeff.c</div></div>
</div><!--header-->
<div class="contents">
<a href="APdiffusionCoeff_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/** @file APdiffusionCoeff.c</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * @brief Ambipolar diffusion coefficient</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Copyright (C) 2020 Udo Ziegler</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Category: Numerics</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * Version: 4</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Public functions: APdiffusionCoeff()</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="nirvana_8h.html">nirvana.h</a>&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">/*############################################################################*/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="APdiffusionCoeff_8c.html#a775b0393e3a1b106fefa7c5da010d361"> 20</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="APdiffusionCoeff_8c.html#a775b0393e3a1b106fefa7c5da010d361">APdiffusionCoeff</a>(<a class="code" href="structgrid.html">GRD</a> *g, <span class="keywordtype">double</span> ***APdiff)<span class="comment"></span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"> * Computation of the ambipolar diffusion coefficient.</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment"> * @param g grid pointer</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment"> * @param APdiff pointer to array for ambipolar diffusion coefficient</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment"> * @author Udo Ziegler, AIP</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment"> * @note The ambipolar diffusion coefficient is assumed a cell-centroid</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment"> * quantity given in SI units [Vm/A/T^2]</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <span class="keywordtype">int</span> ix,iy,iz;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keywordflow">if</span>(APDIFF_DEFAULT) <span class="comment">/* CONSTANT VALUE (DEFAULT) ------------------------------ */</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordflow">for</span>(iz=0; iz&lt;=g-&gt;nz; iz++)</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keywordflow">for</span>(iy=0; iy&lt;=g-&gt;ny; iy++) </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keywordflow">for</span>(ix=0; ix&lt;=g-&gt;nx; ix++)</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; APdiff[iz][iy][ix]=_C.APdiffusion_coeff;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keywordflow">if</span>(APDIFF_USER) <a class="code" href="APdiffusionCoeffUser_8c.html#a05cc5b4317345db679dcf2d7bd278161">APdiffusionCoeffUser</a>(g,APdiff); <span class="comment">/* USER-DEFINED ------------- */</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;}</div>
<a href="APdiffusionCoeff_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/** @file APdiffusionCoeff.c</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> *</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * @brief Ambipolar diffusion coefficient</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * Copyright (C) 2020 Udo Ziegler</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> *</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * Category: Numerics</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> *</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> * Version: 4</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> *</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> * Public functions: APdiffusionCoeff()</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> */</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include &lt;<a class="code" href="nirvana_8h.html">nirvana.h</a>&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">/*############################################################################*/</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="APdiffusionCoeff_8c.html#a775b0393e3a1b106fefa7c5da010d361"> 20</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="APdiffusionCoeff_8c.html#a775b0393e3a1b106fefa7c5da010d361">APdiffusionCoeff</a>(<a class="code hl_struct" href="structgrid.html">GRD</a> *g, <span class="keywordtype">double</span> ***APdiff)<span class="comment"></span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="comment">/**</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="comment"> * Computation of the ambipolar diffusion coefficient.</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="comment"> *</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="comment"> * @param g grid pointer</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="comment"> * @param APdiff pointer to array for ambipolar diffusion coefficient</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="comment"> *</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="comment"> * @author Udo Ziegler, AIP