File: DMMoabPToRMapping.html

package info (click to toggle)
petsc 3.14.5%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 266,472 kB
  • sloc: ansic: 680,898; python: 33,303; cpp: 16,324; makefile: 14,022; f90: 13,731; javascript: 10,713; fortran: 9,581; sh: 1,373; xml: 619; objc: 445; csh: 192; pascal: 148; java: 13
file content (44 lines) | stat: -rw-r--r-- 3,558 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMMOAB/DMMoabPToRMapping.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>DMMoabPToRMapping</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
   <div id="version" align=right><b>petsc-3.14.5 2021-03-03</b></div>
   <div id="bugreport" align=right><a href="mailto:petsc-maint@mcs.anl.gov?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: petsc-3.14.5 v3.14.5 docs/manualpages/DMMOAB/DMMoabPToRMapping.html "><small>Report Typos and Errors</small></a></div>
<A NAME="DMMoabPToRMapping"><H1>DMMoabPToRMapping</H1></A>
Compute the mapping from the physical coordinate system for a given element to the canonical reference element. In addition to finding the inverse mapping evaluation through Newton iteration, the basis function at the parametric point is also evaluated optionally. 
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscdt.h" 
#include "petscdmmoab.h"   
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../DMMOAB/DMMoabPToRMapping.html#DMMoabPToRMapping">DMMoabPToRMapping</A>(const <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> dim, const <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> nverts, const <A HREF="../Sys/PetscReal.html#PetscReal">PetscReal</A> *coordinates, const <A HREF="../Sys/PetscReal.html#PetscReal">PetscReal</A>* xphy, <A HREF="../Sys/PetscReal.html#PetscReal">PetscReal</A>* natparam, <A HREF="../Sys/PetscReal.html#PetscReal">PetscReal</A>* phi)
</PRE>
<H3><FONT COLOR="#CC3333">Input Parameter</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B><A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A>  dim </B></TD><TD>- the element dimension (1=EDGE, 2=QUAD/TRI, 3=HEX/TET)
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B><A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> nverts </B></TD><TD>- the number of vertices in the physical element
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B><A HREF="../Sys/PetscReal.html#PetscReal">PetscReal</A> coordinates </B></TD><TD>- the coordinates of vertices in the physical element
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B><A HREF="../Sys/PetscReal.html#PetscReal">PetscReal</A>[3] xphy </B></TD><TD>- the coordinates of physical point for which natural coordinates (in reference frame) are sought
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Output Parameter</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B><A HREF="../Sys/PetscReal.html#PetscReal">PetscReal</A>[3] natparam </B></TD><TD>- the natural coordinates (in reference frame) corresponding to xphy
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B><A HREF="../Sys/PetscReal.html#PetscReal">PetscReal</A>[nverts] phi </B></TD><TD>- the basis functions evaluated at the natural coordinates (natparam)
</TD></TR></TABLE>
<P>

<P>
<P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>advanced<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/dm/impls/moab/dmmbfem.cxx.html#DMMoabPToRMapping">src/dm/impls/moab/dmmbfem.cxx</A>
<BR><A HREF="./index.html">Index of all DMMOAB routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>