-
Notifications
You must be signed in to change notification settings - Fork 67
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 ab62dd8
Showing
220 changed files
with
38,986 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: b74f63bce3e9adf98c58120ff4aa0dc6 | ||
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.
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,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 — 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 & 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">"""</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">"""</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">"""</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"> """</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">"""</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"> """</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">"""</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"> """</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">"""</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"> """</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">"""</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"> """</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">"""</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"> """</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">"""</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"> """</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 -> 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>© 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.