AppFemPy.cpp File Reference

#include "PreCompiled.h"
#include <Python.h>
#include <memory>
#include <Base/Console.h>
#include <Base/VectorPy.h>
#include <Base/PlacementPy.h>
#include <App/Application.h>
#include <App/Document.h>
#include <App/DocumentObject.h>
#include <App/DocumentObjectPy.h>
#include <Mod/Mesh/App/Core/MeshKernel.h>
#include <Mod/Mesh/App/Core/Evaluation.h>
#include <Mod/Mesh/App/Core/Iterator.h>
#include <SMESH_Gen.hxx>
#include <SMESH_Group.hxx>
#include <SMESHDS_Mesh.hxx>
#include <SMDS_MeshNode.hxx>
#include <StdMeshers_MaxLength.hxx>
#include <StdMeshers_LocalLength.hxx>
#include <StdMeshers_NumberOfSegments.hxx>
#include <StdMeshers_AutomaticLength.hxx>
#include <StdMeshers_TrianglePreference.hxx>
#include <StdMeshers_MEFISTO_2D.hxx>
#include <StdMeshers_Deflection1D.hxx>
#include <StdMeshers_MaxElementArea.hxx>
#include <StdMeshers_Regular_1D.hxx>
#include <StdMeshers_QuadranglePreference.hxx>
#include <StdMeshers_Quadrangle_2D.hxx>
#include <StdMeshers_LengthFromEdges.hxx>
#include <StdMeshers_NotConformAllowed.hxx>
#include <StdMeshers_Arithmetic1D.hxx>
#include "FemMesh.h"
#include "FemMeshObject.h"
#include "FemMeshPy.h"
#include <cstdlib>
#include <Standard_Real.hxx>
#include "Base/Vector3D.h"

Go to the source code of this file.

Functions

static PyObjectcalcMeshVolume (PyObject *self, PyObject *args)
static PyObjectcheckBB (PyObject *self, PyObject *args)
static PyObjectexporter (PyObject *self, PyObject *args)
static PyObjectgetBoundary_Conditions (PyObject *self, PyObject *args)
static PyObjectimport_NASTRAN (PyObject *self, PyObject *args)
static PyObjectimporter (PyObject *self, PyObject *args)
static PyObjectminBoundingBox (PyObject *self, PyObject *args)
static PyObjectopen (PyObject *self, PyObject *args)
 PyDoc_STRVAR (export_doc,"export(list,string) -- Export a list of objects into a single file.")
 PyDoc_STRVAR (inst_doc,"insert(string|mesh,[string]) -- Load or insert a mesh into the given or active document.")
 PyDoc_STRVAR (open_doc,"open(string) -- Create a new document and a Mesh::Import feature to load the file into the document.")
static PyObjectread (PyObject *self, PyObject *args)
static PyObjectSMESH_PCA (PyObject *self, PyObject *args)

Variables

struct PyMethodDef Fem_methods []

Function Documentation

static PyObject* calcMeshVolume ( PyObject self,
PyObject args 
) [static]
static PyObject* checkBB ( PyObject self,
PyObject args 
) [static]
static PyObject* exporter ( PyObject self,
PyObject args 
) [static]
static PyObject* getBoundary_Conditions ( PyObject self,
PyObject args 
) [static]
static PyObject* import_NASTRAN ( PyObject self,
PyObject args 
) [static]
static PyObject* importer ( PyObject self,
PyObject args 
) [static]
static PyObject* minBoundingBox ( PyObject self,
PyObject args 
) [static]
static PyObject* open ( PyObject self,
PyObject args 
) [static]
PyDoc_STRVAR ( export_doc  ,
"export(list,string) -- Export a list of objects into a single file."   
)
PyDoc_STRVAR ( inst_doc  ,
"insert(string|mesh,[string]) -- Load or insert a mesh into the given or active document."   
)
PyDoc_STRVAR ( open_doc  ,
"open(string) -- Create a new document and a Mesh::Import feature to load the file into the document."   
)
static PyObject* read ( PyObject self,
PyObject args 
) [static]

Definition at line 74 of file AppFemPy.cpp.

References Mesh2Shape::mesh, PY_CATCH, Py_Return, and PY_TRY.

static PyObject* SMESH_PCA ( PyObject self,
PyObject args 
) [static]

Variable Documentation

struct PyMethodDef Fem_methods[]
Initial value:
 {
    {"open"       ,open ,       METH_VARARGS, open_doc},
    {"insert"     ,importer,    METH_VARARGS, inst_doc},
    {"export"     ,exporter,    METH_VARARGS, export_doc},
    {"read"       ,read,        Py_NEWARGS,   "Read a mesh from a file and returns a Mesh object."},
{"calcMeshVolume", calcMeshVolume, Py_NEWARGS, "Calculate Mesh Volume for C3D10"},      
{"getBoundary_Conditions" , getBoundary_Conditions, Py_NEWARGS, "Get Boundary Conditions for Residual Stress Calculation"},
        {"SMESH_PCA" , SMESH_PCA, Py_NEWARGS, "Get a Matrix4D related to the PCA of a Mesh Object"},
        {"import_NASTRAN",import_NASTRAN, Py_NEWARGS, "Test"},
        {"minBoundingBox",minBoundingBox,Py_NEWARGS,"Minimize the Bounding Box and reorient the mesh to the 1st Quadrant"},
        {"checkBB",checkBB,Py_NEWARGS,"Check if the nodal z-values are still in the prescribed range"},
    {NULL, NULL}  
}

Definition at line 1001 of file AppFemPy.cpp.

Referenced by initFem().


Generated on Wed Nov 23 19:01:12 2011 for FreeCAD by  doxygen 1.6.1