#include "Manifold_2.h"
#include "Generic_element_2.h"
#include "../Rocblas/include/Rocblas.h"
Go to the source code of this file.
Definition at line 39 of file compute_curvature.C.
References Vector_3< Type >::cross_product(), Generic_element_2::get_gp_nat_coor(), Generic_element_2::get_gp_weight(), Generic_element_2::get_num_gp(), i, Vector_3< Type >::norm(), and v.
Referenced by Window_manifold_2::compute_mcn().
40 ws[0] = ws[1] = ws[2] = 0.;
43 int size = e.get_num_gp();
46 for (
int i=0;
i<size;
i++){
49 e.get_gp_nat_coor(
i, nc);
51 const Real &xi=nc[0], &eta=nc[1];
57 const Real weight = e.get_gp_weight(
i);
63 const Real su = weight * ((1-eta)*uv-(1-xi)*(u*u))/jacobi_det;
64 const Real sv = weight * ((1-xi)*uv-(1-eta)*(v*
v))/jacobi_det;
66 ws[0] += (1-eta)*sv -xi*su;
67 ws[1] += xi*su + eta*sv;
68 ws[2] += (1-xi)*su - eta*sv;;
69 area += weight * jacobi_det;
Encapsulation of the element-wise computations for two-dimensional elements.
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
static Vector_3 cross_product(const Vector_3 &v, const Vector_3 &w)
Definition at line 31 of file compute_curvature.C.
Referenced by bcondoutflowperf(), bcondoutflowperf_gl(), compare_xC2(), compare_y_at_xC2(), Window_manifold_2::compute_mcn(), equal_directionC2(), equal_directionC3(), equal_lineC2(), findpdf(), modtools::makenonzero(), Sgn< NT >::operator()(), DirectionS2< FT >::operator==(), DirectionS3< FT >::operator==(), LineS2< FT >::operator==(), LineS2< FT >::oriented_side(), PlaneS3< FT >::oriented_side(), prep_modbcdistribution::profinflowvttaylorcyl(), rflo_modboundaryconditions::rflo_bcondoutflowperf(), rflo_extrapintcellscal(), rflo_extrapintcellvec(), rflu_modbilinearpatch::rflu_blin_computexsectline(), rflu_modexactflow::rflu_computeexactflowringleb(), rflu_convfluxoles(), rflu_modextractflowdatautils::rflu_extractshocklocation1d(), rflu_modrocstartools::rflu_genx_constraindisp(), rflu_modrocstartools::rflu_genx_initbflag(), rflu_setmovegridoptions(), rflu_modpatchutils::rflu_setpatchflatflags(), side_of_oriented_lineC2(), side_of_oriented_planeC3(), sign_of_determinant3x3(), sign_of_determinant4x4(), sign_of_determinant5x5(), sign_of_determinant6x6(), spec_rflu_sourceterms_gl(), tql1(), tql2(), tred1(), tred2(), turb_floextrapintcellscal(), turb_floextrapintcellvec(), turb_floextrapolcellvec(), turb_floextrapolfacevec(), and rflu_modrepair3d::volcom().
32 return (
x>=0) ? 1 : -1;