libMesh
Classes | Functions
mesh_function_dfem.C File Reference

Go to the source code of this file.

Classes

class  MeshfunctionDFEM
 

Functions

Number position_function (const Point &p, const Parameters &, const std::string &, const std::string &)
 
Number position_function2 (const Point &p, const Parameters &, const std::string &, const std::string &)
 
 CPPUNIT_TEST_SUITE_REGISTRATION (MeshfunctionDFEM)
 

Function Documentation

◆ CPPUNIT_TEST_SUITE_REGISTRATION()

CPPUNIT_TEST_SUITE_REGISTRATION ( MeshfunctionDFEM  )

◆ position_function()

Number position_function ( const Point p,
const Parameters ,
const std::string &  ,
const std::string &   
)

Definition at line 20 of file mesh_function_dfem.C.

Referenced by MeshfunctionDFEM::test_mesh_function_dfem().

24 {
25  if (p(1) > 0.0)
26  return 0.0;
27  else
28  return 1.0;
29 }

◆ position_function2()

Number position_function2 ( const Point p,
const Parameters ,
const std::string &  ,
const std::string &   
)

Definition at line 31 of file mesh_function_dfem.C.

Referenced by MeshfunctionDFEM::test_mesh_function_dfem_grad().

35 {
36  if (p(1) > 0.0)
37  return 2.0 * p(1) + 1.0;
38  else
39  return p(1) + 1.0;
40 }