.. _rupture-model:
Rupture Model
=============
As the scenario calculator does not need to determine the probability of occurrence of the specific rupture, but only 
sufficient information to parameterise the location (as a three-dimensional surface), the magnitude and the style-of-
faulting of the rupture, a more simplified NRML structure is sufficient compared to the source model structures 
described previously in Source typologies. A rupture model XML can be defined in the following formats:
#. Simple fault rupture
#. Planar and Multi-Planar fault rupture
#. Complex fault rupture
#. Gridded Rupture
Simple Fault Rupture
--------------------
In a *Simple Fault Rupture* model, the geometry is defined by the trace of the fault rupture, the dip and the upper and 
lower seismogenic depths. An example is shown in the listing below:
.. code-block:: xml
	
	
		
		6.7
		180.0
		
		
			
			
				-121.80236 37.39713
				-121.91453 37.48312
				-122.00413 37.59493
				-122.05088 37.63995
				-122.09226 37.68095
				-122.17796 37.78233
			
			
			76.0
			0.0
			13.4
		
		
	
Planar and Multi-Planar Rupture
-------------------------------
In a *Planar or Multi-Planar Rupture* model, the geometry is defined as a collection of one or more rectangular planes, 
each defined by four corners. An example of a multi-planar rupture is shown below in the listing below:
.. code-block:: xml
	
	
	
	    
	        8.0
	        90.0
	        
	            
	                
	                
	                
	                
	            
	            
	                
	                
	                
	                
	            
	    
	
	
Complex Fault Rupture
---------------------
In a *Complex Fault Rupture* model, the geometry is defined by the upper, lower and (if applicable) intermediate edges 
of the fault rupture. An example of a complex fault rupture is shown below in the listing below:
.. code-block:: xml
	
	    
	        8.0
	        90.0
	        
	        
	            
	                
	                    
	                        0.6 -1.5 2.0
	                        1.0 -1.3 5.0
	                        1.5 -1.0 8.0
	                    
	                
	            
	            
	                
	                    
	                        0.65 -1.55 4.0
	                        1.1  -1.4  10.0
	                        1.5  -1.2  20.0
	                    
	                
	            
	            
	                
	                    
	                        0.65 -1.7 8.0
	                        1.1  -1.6 15.0
	                        1.5  -1.7 35.0
	                    
	                
	            
	        
	    
	
	
Gridded Rupture
---------------
In a *Gridded Rupture* the geometry is defined in terms of a GriddedSurface which is a mesh of points.
An example of gridded rupture is shown below in the listing below::
.. code-block:: xml
	
	
	
	    8.2
	    90.0
	    
	    
    
	      
	        141.659 35.121 9.8 141.659 35.099 9.6 141.659 35.076 9.4 ...