-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b950c2e
Showing
216 changed files
with
37,166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 — 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 & 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">"""</span> | ||
<span class="sd"> This class represents a 2D finite element transformation.</span> | ||
<span class="sd"> """</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">"""</span> | ||
<span class="sd"> Constructor for the FETransforamtion2D class.</span> | ||
<span class="sd"> """</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">"""</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"> """</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">"""</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"> """</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">"""</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"> """</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">"""</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"> """</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>© 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> |
Oops, something went wrong.