Skip to content

Commit

Permalink
deploy: 685d16e
Browse files Browse the repository at this point in the history
  • Loading branch information
thivinanandh committed Jul 24, 2024
0 parents commit cb0e043
Show file tree
Hide file tree
Showing 234 changed files with 41,984 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: b74f63bce3e9adf98c58120ff4aa0dc6
tags: 645f666f9bcd5a90fca523b33c5a78b7
Empty file added .nojekyll
Empty file.
2,448 changes: 2,448 additions & 0 deletions _downloads/951533f04d211468d939e61498d3fa42/Gear.stp

Large diffs are not rendered by default.

Binary file added _images/console.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/epsilon_error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/epsilon_exact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/epsilon_predicted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/error1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/error2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/error3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/error4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/error5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/error6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/error7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/error8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/exact_solution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/exact_solution1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/exact_solution2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/exact_solution3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/exact_solution4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/exact_solution5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/exact_solution6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/exact_solution7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/exact_solution8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/export_mesh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/gear_geometry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/gmeshcircle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/inverse_eps_prediction.png
Binary file added _images/loss_function.png
Binary file added _images/mesh.png
Binary file added _images/mesh1.png
Binary file added _images/mesh2.png
Binary file added _images/mesh3.png
Binary file added _images/mesh4.png
Binary file added _images/mesh_file.png
Binary file added _images/mesh_options.png
Binary file added _images/mesh_stat.png
Binary file added _images/meshing_algorithm.png
Binary file added _images/physical_group.png
Binary file added _images/predicted_solution.png
Binary file added _images/predicted_solution1.png
Binary file added _images/predicted_solution2.png
Binary file added _images/predicted_solution3.png
Binary file added _images/predicted_solution4.png
Binary file added _images/predicted_solution5.png
Binary file added _images/predicted_solution6.png
Binary file added _images/predicted_solution7.png
Binary file added _images/predicted_solution8.png
Binary file added _images/quad_mesh_new.png
Binary file added _images/rect.png
Binary file added _images/rect1.png
Binary file added _images/rect2.png
Binary file added _images/rect3.png
Binary file added _images/rectangular_domain.png
Binary file added _images/rectangular_domain_mesh.png
Binary file added _images/unitcircle.png
Binary file added _images/unitcircle1.png
Binary file added _images/unitcircle2.png
Binary file added _images/unitcircle3.png
Binary file added _images/vpinns.png
Binary file added _images/warning.png
436 changes: 436 additions & 0 deletions _modules/fastvpinns/FE/FE2D_Cell.html

Large diffs are not rendered by default.

459 changes: 459 additions & 0 deletions _modules/fastvpinns/FE/basis_2d_QN_Jacobi.html

Large diffs are not rendered by default.

254 changes: 254 additions & 0 deletions _modules/fastvpinns/FE/basis_function_2d.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="../../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>fastvpinns.FE.basis_function_2d &mdash; fastvpinns 1.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../../_static/copybutton.css?v=76b2166b" />


<!--[if lt IE 9]>
<script src="../../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=8d563738"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../../_static/copybutton.js?v=f281be69"></script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="../../../index.html">

<img src="../../../_static/Fastvpinns_logo.png" class="logo" alt="Logo"/>
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Getting Started</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../_rst/_installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../_rst/_docker.html">Docker Installation</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Example-Problems</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../_rst/_tutorial.html"> Tutorials</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">API Reference</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../_rst/fastvpinns.html">fastvpinns</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Community</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../_rst/_licence.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../_rst/_contributing.html">Contributing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../_rst/_cite.html">Cite FastVPINNs</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../_rst/_team.html">Team &amp; Fundings</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../index.html">fastvpinns</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../../index.html">Module code</a></li>
<li class="breadcrumb-item active">fastvpinns.FE.basis_function_2d</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for fastvpinns.FE.basis_function_2d</h1><div class="highlight"><pre>
<span></span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">The file `basis_function_2d.py` contains a wrapper class for all the finite element basis functions </span>
<span class="sd">used in the FE2D code. The 2D basis functions have methods to return the value </span>
<span class="sd">of the basis function and its derivatives at the reference point (xi, eta).</span>

<span class="sd">Author: Thivin Anandh D</span>

<span class="sd">Changelog: 30/Aug/2023 - First version</span>

<span class="sd">Known issues: None</span>

<span class="sd">Dependencies: None specified</span>
<span class="sd">&quot;&quot;&quot;</span>

<span class="kn">from</span> <span class="nn">abc</span> <span class="kn">import</span> <span class="n">abstractmethod</span>


<div class="viewcode-block" id="BasisFunction2D">
<a class="viewcode-back" href="../../../_rst/library/fe2d/fe2d_basis_function.html#fastvpinns.FE.basis_function_2d.BasisFunction2D">[docs]</a>
<span class="k">class</span> <span class="nc">BasisFunction2D</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> This class defines the basis functions for a 2D element.</span>

<span class="sd"> :num_shape_functions (int): The number of shape functions.</span>
<span class="sd"> :value(xi, eta): Evaluates the basis function at the given xi and eta coordinates.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">num_shape_functions</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">num_shape_functions</span> <span class="o">=</span> <span class="n">num_shape_functions</span>

<div class="viewcode-block" id="BasisFunction2D.value">
<a class="viewcode-back" href="../../../_rst/library/fe2d/fe2d_basis_function.html#fastvpinns.FE.basis_function_2d.BasisFunction2D.value">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">value</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">xi</span><span class="p">,</span> <span class="n">eta</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Evaluates the basis function at the given xi and eta coordinates.</span>

<span class="sd"> :param float xi: The xi coordinate.</span>
<span class="sd"> :param float eta: The eta coordinate.</span>
<span class="sd"> :return: The value of the basis function at the given coordinates.</span>
<span class="sd"> :rtype: float</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">pass</span></div>


<div class="viewcode-block" id="BasisFunction2D.gradx">
<a class="viewcode-back" href="../../../_rst/library/fe2d/fe2d_basis_function.html#fastvpinns.FE.basis_function_2d.BasisFunction2D.gradx">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">gradx</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">xi</span><span class="p">,</span> <span class="n">eta</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Computes the partial derivative of the basis function with respect to xi.</span>

<span class="sd"> :param float xi: The xi coordinate.</span>
<span class="sd"> :param float eta: The eta coordinate.</span>
<span class="sd"> :return: The partial derivative of the basis function with respect to xi.</span>
<span class="sd"> :rtype: float</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">pass</span></div>


<div class="viewcode-block" id="BasisFunction2D.grady">
<a class="viewcode-back" href="../../../_rst/library/fe2d/fe2d_basis_function.html#fastvpinns.FE.basis_function_2d.BasisFunction2D.grady">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">grady</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">xi</span><span class="p">,</span> <span class="n">eta</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Computes the partial derivative of the basis function with respect to eta.</span>

<span class="sd"> :param float xi: The xi coordinate.</span>
<span class="sd"> :param float eta: The eta coordinate.</span>
<span class="sd"> :return: The partial derivative of the basis function with respect to eta.</span>
<span class="sd"> :rtype: float</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">pass</span></div>


<div class="viewcode-block" id="BasisFunction2D.gradxx">
<a class="viewcode-back" href="../../../_rst/library/fe2d/fe2d_basis_function.html#fastvpinns.FE.basis_function_2d.BasisFunction2D.gradxx">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">gradxx</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">xi</span><span class="p">,</span> <span class="n">eta</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Computes the second partial derivative of the basis function with respect to xi.</span>

<span class="sd"> :param float xi: The xi coordinate.</span>
<span class="sd"> :param float eta: The eta coordinate.</span>
<span class="sd"> :return: The second partial derivative of the basis function with respect to xi.</span>
<span class="sd"> :rtype: float</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">pass</span></div>


<div class="viewcode-block" id="BasisFunction2D.gradxy">
<a class="viewcode-back" href="../../../_rst/library/fe2d/fe2d_basis_function.html#fastvpinns.FE.basis_function_2d.BasisFunction2D.gradxy">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">gradxy</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">xi</span><span class="p">,</span> <span class="n">eta</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Computes the mixed partial derivative of the basis function with respect to xi and eta.</span>

<span class="sd"> :param float xi: The xi coordinate.</span>
<span class="sd"> :param float eta: The eta coordinate.</span>
<span class="sd"> :return: The mixed partial derivative of the basis function with respect to xi and eta.</span>
<span class="sd"> :rtype: float</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">pass</span></div>


<div class="viewcode-block" id="BasisFunction2D.gradyy">
<a class="viewcode-back" href="../../../_rst/library/fe2d/fe2d_basis_function.html#fastvpinns.FE.basis_function_2d.BasisFunction2D.gradyy">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">gradyy</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">xi</span><span class="p">,</span> <span class="n">eta</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Computes the second partial derivative of the basis function with respect to eta.</span>

<span class="sd"> :param float xi: The xi coordinate.</span>
<span class="sd"> :param float eta: The eta coordinate.</span>
<span class="sd"> :return: The second partial derivative of the basis function with respect to eta.</span>
<span class="sd"> :rtype: float</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">pass</span></div>
</div>



<span class="c1"># ---------------- Legendre -------------------------- #</span>
<span class="kn">from</span> <span class="nn">.basis_2d_QN_Legendre</span> <span class="kn">import</span> <span class="o">*</span> <span class="c1"># Normal Legendre from Jacobi -&gt; J(n) = J(n-1) - J(n+1)</span>
<span class="kn">from</span> <span class="nn">.basis_2d_QN_Legendre_Special</span> <span class="kn">import</span> <span class="o">*</span> <span class="c1"># L(n) = L(n-1) - L(n+1)</span>

<span class="c1"># ---------------- Jacobi -------------------------- #</span>
<span class="kn">from</span> <span class="nn">.basis_2d_QN_Jacobi</span> <span class="kn">import</span> <span class="o">*</span> <span class="c1"># Normal Jacobi</span>

<span class="c1"># ---------------- Chebyshev -------------------------- #</span>
<span class="kn">from</span> <span class="nn">.basis_2d_QN_Chebyshev_2</span> <span class="kn">import</span> <span class="o">*</span> <span class="c1"># Normal Chebyshev</span>
</pre></div>

</div>
</div>
<footer>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2024, Thivin Anandh, Divij Ghose, Sashikumaar Ganesan.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
Loading

0 comments on commit cb0e043

Please sign in to comment.