Skip to content

Commit

Permalink
deploy: ba6a012
Browse files Browse the repository at this point in the history
  • Loading branch information
thivinanandh committed May 11, 2024
0 parents commit b950c2e
Show file tree
Hide file tree
Showing 216 changed files with 37,166 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: e9259293e3959cef89fe618c7445ba31
tags: 645f666f9bcd5a90fca523b33c5a78b7
Empty file added .nojekyll
Empty file.
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/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
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/loss_function.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/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/mesh1.png
Binary file added _images/mesh2.png
Binary file added _images/mesh3.png
Binary file added _images/mesh4.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/rect.png
Binary file added _images/rect1.png
Binary file added _images/rect2.png
Binary file added _images/rect3.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
432 changes: 432 additions & 0 deletions _modules/fastvpinns/FE/FE2D_Cell.html

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

264 changes: 264 additions & 0 deletions _modules/fastvpinns/FE/fe2d_setup_main.html

Large diffs are not rendered by default.

219 changes: 219 additions & 0 deletions _modules/fastvpinns/FE/fe_transformation_2d.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
<!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.fe_transformation_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>
</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.fe_transformation_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.fe_transformation_2d</h1><div class="highlight"><pre>
<span></span><span class="c1"># This class provides an interface for the transformation methods used in the</span>
<span class="c1"># 2D finite element analysis. The transformation is essential for mapping</span>
<span class="c1"># element geometry in the reference domain to the actual physical domain.</span>
<span class="c1"># The primary functionalities encapsulated within this class include:</span>
<span class="c1"># 1. set_cell() - To set the physical coordinates of the cell. These coordinates</span>
<span class="c1"># are essential for subsequent computations involving Jacobians and transformations.</span>
<span class="c1"># 2. get_original_from_ref(xi, eta) - Given reference coordinates (xi, eta), this</span>
<span class="c1"># method returns the corresponding coordinates in the physical domain.</span>
<span class="c1"># 3. get_jacobian(xi, eta) - For a given point in the reference domain, represented</span>
<span class="c1"># by (xi, eta), this method calculates and returns the Jacobian of</span>
<span class="c1"># the transformation, which provides information about the local stretching,</span>
<span class="c1"># rotation, and skewing of the element.</span>
<span class="c1">#</span>
<span class="c1"># Further implementations of this class for specific element types (like quad and triangular elements)</span>
<span class="c1"># can incorporate more detailed and element-specific transformation techniques.</span>
<span class="c1">#</span>
<span class="c1"># Author: Thivin Anandh D</span>
<span class="c1"># Date: 20-Sep-2023</span>
<span class="c1"># History: First version - 20-Sep-2023 - Thivin Anandh</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="FETransforamtion2D">
<a class="viewcode-back" href="../../../_rst/library/fe2d/fe2d_transformation.html#fastvpinns.FE.fe_transformation_2d.FETransforamtion2D">[docs]</a>
<span class="k">class</span> <span class="nc">FETransforamtion2D</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> This class represents a 2D finite element transformation.</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="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Constructor for the FETransforamtion2D class.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<div class="viewcode-block" id="FETransforamtion2D.set_cell">
<a class="viewcode-back" href="../../../_rst/library/fe2d/fe2d_transformation.html#fastvpinns.FE.fe_transformation_2d.FETransforamtion2D.set_cell">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">set_cell</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Set the cell coordinates, which will be used to calculate the Jacobian and actual values.</span>

<span class="sd"> :return: None</span>
<span class="sd"> &quot;&quot;&quot;</span></div>


<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">get_original_from_ref</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"> This method returns the original coordinates from the reference coordinates.</span>

<span class="sd"> :param xi: The xi coordinate in the reference space.</span>
<span class="sd"> :type xi: float</span>
<span class="sd"> :param eta: The eta coordinate in the reference space.</span>
<span class="sd"> :type eta: float</span>
<span class="sd"> :return: The original coordinates (x, y) corresponding to the given reference coordinates.</span>
<span class="sd"> :rtype: tuple</span>
<span class="sd"> &quot;&quot;&quot;</span>

<div class="viewcode-block" id="FETransforamtion2D.get_original_from_ref">
<a class="viewcode-back" href="../../../_rst/library/fe2d/fe2d_transformation.html#fastvpinns.FE.fe_transformation_2d.FETransforamtion2D.get_original_from_ref">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">get_original_from_ref</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"> This method returns the original coordinates from the reference coordinates.</span>

<span class="sd"> :param xi: The xi value of the reference coordinates.</span>
<span class="sd"> :type xi: float</span>
<span class="sd"> :param eta: The eta value of the reference coordinates.</span>
<span class="sd"> :type eta: float</span>
<span class="sd"> :return: The original coordinates corresponding to the given reference coordinates.</span>
<span class="sd"> :rtype: tuple</span>
<span class="sd"> &quot;&quot;&quot;</span></div>


<div class="viewcode-block" id="FETransforamtion2D.get_jacobian">
<a class="viewcode-back" href="../../../_rst/library/fe2d/fe2d_transformation.html#fastvpinns.FE.fe_transformation_2d.FETransforamtion2D.get_jacobian">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">get_jacobian</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"> This method returns the Jacobian of the transformation.</span>

<span class="sd"> :param xi: The xi coordinate.</span>
<span class="sd"> :type xi: float</span>
<span class="sd"> :param eta: The eta coordinate.</span>
<span class="sd"> :type eta: float</span>
<span class="sd"> :return: The Jacobian matrix.</span>
<span class="sd"> :rtype: numpy.ndarray</span>
<span class="sd"> &quot;&quot;&quot;</span></div>
</div>



<span class="c1">## Mandatory, Import all the basis functions here (Quad element Transformations)</span>
<span class="kn">from</span> <span class="nn">.quad_affine</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">.quad_bilinear</span> <span class="kn">import</span> <span class="o">*</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 b950c2e

Please sign in to comment.