SPModel: plugins/faultModel/FaultModel.c File Reference
VPAC - Computational Software Development
Main | SPModel | StGermain FrameWork |
Main Page | Alphabetical List | Class List | Directories | File List | Class Members | File Members

FaultModel.c File Reference

#include <mpi.h>
#include <StGermain/StGermain.h>
#include "SPModel/SPModel.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "FaultModel.h"

Include dependency graph for FaultModel.c:

Go to the source code of this file.

Defines

#define EPSILON   1e-06

Functions

void * _SPModelFaultModel_DefaultNew (Name name)
void _SPModelFaultModel_Construct (void *component, Stg_ComponentFactory *data)
int colinearityCheck (Coord a, Coord b, Coord c)
void _SPModelFaultModel_Init (void *_context)
void SPModelFaultModel_RefreshNodeIndices (void *_context)
void SPModelFaultModel_Solve (void *_context)
Index SPModelFaultModel_Register (PluginsManager *pluginsManager)

Variables

const Type SPModelFaultModel_Type = "SPModelFaultModel"
ExtensionInfo_Index SPModel_FaultModel_ContextExtHandle
ExtensionInfo_Index SPModel_Simulation_ContextExtHandle


Define Documentation

#define EPSILON   1e-06
 

Definition at line 68 of file FaultModel.c.

Referenced by colinearityCheck().


Function Documentation

void _SPModelFaultModel_Construct void *  component,
Stg_ComponentFactory *  data
 

Definition at line 52 of file FaultModel.c.

References _SPModelFaultModel_Init(), SPModel_FaultModel_ContextExtHandle, SPModel_Simulation_ContextExtHandle, and SPModelFaultModel_Solve().

Referenced by _SPModelFaultModel_DefaultNew().

void* _SPModelFaultModel_DefaultNew Name  name  ) 
 

Definition at line 40 of file FaultModel.c.

References _SPModelFaultModel_Construct(), _SPModelFaultModel_DefaultNew(), and SPModelFaultModel_Type.

Referenced by _SPModelFaultModel_DefaultNew(), and SPModelFaultModel_Register().

void _SPModelFaultModel_Init void *  _context  ) 
 

Definition at line 89 of file FaultModel.c.

References SPModelFaultModelContextExtension_t::arcPoints, SPModelFaultModelContextExtension_t::arcs, SPModelFaultModelContextExtension_t::circleCentrePoints, colinearityCheck(), SPModelFaultModelContextExtension_t::coordType, SPModelFaultModelContextExtension_t::distFromBoundary, SPModelFaultModelContextExtension_t::faultBounds, faultModel, SPModelFaultModelContextExtension_t::fmUpliftRate, SurfaceMesh::id, Arc_t::index, SPModel_Context::localMesh, SurfaceMesh::mapGlobalToLocal, SurfaceMesh::myLoad, NATURAL, SPModelFaultModelContextExtension_t::nodeIndices, NORMALISED, SPModelFaultModelContextExtension_t::numFaultModel, ParameterTimeSeries_New(), SPModelFaultModelContextExtension_t::radiusSq, SurfaceMesh::sideX, SurfaceMesh::sideY, SPModel_FaultModel_ContextExtHandle, UNDEFINED, SurfaceMesh::x, and SurfaceMesh::y.

Referenced by _SPModelFaultModel_Construct().

int colinearityCheck Coord  a,
Coord  b,
Coord  c
 

Definition at line 69 of file FaultModel.c.

References EPSILON.

Referenced by _SPModelFaultModel_Init().

void SPModelFaultModel_RefreshNodeIndices void *  _context  ) 
 

Definition at line 382 of file FaultModel.c.

References SPModelFaultModelContextExtension_t::circleCentrePoints, SPModelFaultModelContextExtension_t::distFromBoundary, SPModelFaultModelContextExtension_t::faultBounds, faultModel, SurfaceMesh::id, SPModel_Context::localMesh, SurfaceMesh::mapGlobalToLocal, SurfaceMesh::myLoad, SPModelFaultModelContextExtension_t::nodeIndices, SPModelFaultModelContextExtension_t::numFaultModel, SPModelFaultModelContextExtension_t::radiusSq, SPModel_FaultModel_ContextExtHandle, UNDEFINED, SurfaceMesh::x, and SurfaceMesh::y.

Referenced by SPModelFaultModel_Solve().

Index SPModelFaultModel_Register PluginsManager *  pluginsManager  ) 
 

Definition at line 512 of file FaultModel.c.

References _SPModelFaultModel_DefaultNew(), and SPModelFaultModel_Type.

void SPModelFaultModel_Solve void *  _context  ) 
 

Definition at line 472 of file FaultModel.c.

References SPModelFaultModelContextExtension_t::distFromBoundary, faultModel, SPModelFaultModelContextExtension_t::fmUpliftRate, SurfaceMesh::h, SPModel_Context::localMesh, SurfaceMesh::mapGlobalToLocal, SurfaceMesh::myLoad, SPModelFaultModelContextExtension_t::nodeIndices, SPModelFaultModelContextExtension_t::numFaultModel, ParameterTimeSeries_Interpolate, SPModel_Context::redistributeNodesFlag, simulationExt, SPModel_FaultModel_ContextExtHandle, SPModel_Simulation_ContextExtHandle, SPModelFaultModel_RefreshNodeIndices(), UNDEFINED, SPModelSimulationContextExtension_t::uplift, and ParameterTimeSeries::value.

Referenced by _SPModelFaultModel_Construct().


Variable Documentation

ExtensionInfo_Index SPModel_FaultModel_ContextExtHandle
 

Definition at line 37 of file FaultModel.c.

Referenced by _SPModelFaultModel_Construct(), _SPModelFaultModel_Init(), SPModelFaultModel_RefreshNodeIndices(), and SPModelFaultModel_Solve().

ExtensionInfo_Index SPModel_Simulation_ContextExtHandle
 

Definition at line 38 of file FaultModel.c.

const Type SPModelFaultModel_Type = "SPModelFaultModel"
 

Definition at line 36 of file FaultModel.c.

Referenced by _SPModelFaultModel_DefaultNew(), and SPModelFaultModel_Register().