Difference between revisions of "UCVM Model Integration Guide"

From SCECpedia
Jump to navigationJump to search
(Created page with '== Introduction == UCVM 14.7.0 introduced a new interface designed to make installing and adding new models easier. Unlike previous versions of UCVM, starting with UCVM 14.7.0, …')
 
Line 16: Line 16:
 
UCVM passes the input latitude, longitude, and depth through a structure which is defined as follows:
 
UCVM passes the input latitude, longitude, and depth through a structure which is defined as follows:
  
 +
<code>
 
typedef struct basic_point_t {<br />
 
typedef struct basic_point_t {<br />
 
&nbsp;&nbsp;&nbsp;&nbsp;double longitude;<br />
 
&nbsp;&nbsp;&nbsp;&nbsp;double longitude;<br />
Line 21: Line 22:
 
&nbsp;&nbsp;&nbsp;&nbsp;double depth;<br />
 
&nbsp;&nbsp;&nbsp;&nbsp;double depth;<br />
 
} basic_point_t;
 
} basic_point_t;
 +
</code>

Revision as of 21:32, 2 July 2014

Introduction

UCVM 14.7.0 introduced a new interface designed to make installing and adding new models easier. Unlike previous versions of UCVM, starting with UCVM 14.7.0, UCVM will not need to know about the model at compile-time in order to make use of it. This means that model developers can more readily use UCVM's plotting utilities, meshing utilities, and other capabilities with their models.

Interface Description

Basic Structures

All UCVM models work in the following basic manner:

1) Take as input latitude, longitude, and depth, with spherical earth co-ordinates using the WGS84 ellipsoid.
2) Return material properties for that point. The material properties consist of one or more of Vp (m/s), Vs (m/s), Density (g/cm^3), Qp, and/or Qs.

UCVM passes the input latitude, longitude, and depth through a structure which is defined as follows:

typedef struct basic_point_t {
    double longitude;
    double latitude;
    double depth;
} basic_point_t;