[CIG-SHORT] heterogeneity of fault friction

Brad Aagaard baagaard at usgs.gov
Sun Mar 19 16:51:36 PDT 2017


Farrokh,

A SimpleDB uses an iohandler for reading files, so replace

friction.db_properties.filename = friction.spatialdb

with

friction.db_properties.iohandler.filename = friction.spatialdb

Make sure your spatial database data has the number of points indicated 
by num-locs.

Please see the debugging tutorial from the 2015 online tutorial (Session 
IV: Debugging at https://wiki.geodynamics.org/software:pylith:cdm2015) 
to learn how to debug these types of errors. As Charles indicated, using 
the --help-components and --help-properties command line arguments to 
find out the options and defaults.

Regards,
Brad


On 3/19/17 1:01 PM, Charles Williams wrote:
> Dear Farrokh,
>
> It’s a bit difficult to tell without more information.  PyLith thinks
> you aren’t providing a spatial database.  It would probably be helpful
> to use pylithinfo or trace down the tree of components/properties using
> —help-components and —help-properties.  Also, what version of PyLith are
> you using?
>
> Cheers,
> Charles
>
>
>
>
>> On 19/03/2017, at 4:45 PM, Farrokh Sheibani <farrokh at mit.edu
>> <mailto:farrokh at mit.edu>> wrote:
>>
>> Dear Pylith developers,
>>
>> I am trying to model nonuniform distribution of fault friction
>> parameters. The cult constitutive modeling that I am using is Slip
>> Weakening. I am receiving error. I attached the cfg file as well as
>> friction spatial database file and also the error message.
>>
>> I was wonderen if you would help me regarding this:
>>
>>
>> Thank you so much in advance!
>>
>> Best,
>>
>> Farrokh Sheibani
>>
>>
>> cfg File:
>>
>> pylithapp.timedependent.interfaces]
>> NF1=pylith.faults.FaultCohesiveDyn
>> [pylithapp.timedependent.interfaces.NF1]
>> id=100
>> label = NF1
>> quadrature.cell = pylith.feassemble.FIATSimplex
>> quadrature.cell.dimension = 2
>> quadrature.cell.quad_order =4
>> #zero_tolerance = 1e-5
>>
>> friction = pylith.friction.SlipWeakening
>> #friction.label = Slip weakening
>>
>>
>> #friction = pylith.friction.StaticFriction
>> friction.label = Slip weakening
>> friction.db_properties = spatialdata.spatialdb.SimpleDB
>> friction.db_properties.label = Slip weakening
>> friction.db_properties.filename = friction.spatialdb
>> friction.db_properties.query_type = linear
>>
>>
>>
>> Friction Database File:
>>
>>
>>
>>
>> // -*- C++ -*- (tell Emacs to use C++ mode for syntax highlighting)
>> //
>> #SPATIAL.ascii 1
>> SimpleDB {
>>   num-values = 4 // number of friction components
>>
>>   // names of the Slip Weakening components
>>   value-names =  static-coefficient dynamic-coefficient
>> slip-weakening-parameter cohesion
>>   value-units =  none none m Pa// units
>>
>>   num-locs = 2874//
>>   data-dim = 2
>>   space-dim = 3
>>   cs-data = cartesian {
>>     to-meters = 1.0
>>     space-dim = 3
>>   }
>> }
>> // Columns are
>> // (1) x coordinate (m)
>> // (2) y coordinate (m)
>> // (3) z coordinate (m)
>> // (4) static-coefficient (none)
>> // (5) dynamic-coefficient (none)
>> // (6) slip-weakening-parameter (m)
>> // (7) cohesion (Pa)
>> 0.004356039    0.0004799379    0.008003221    0.66    0.5    0
>> 1E-06    0
>>
>> Error Message:
>>
>> Traceback (most recent call last):
>>   File "/data1/farrokh/Pylith/bin/pylith", line 27, in <module>
>>     start(applicationClass=PyLithApp)
>>   File
>> "/data1/farrokh/Pylith/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/applications/__init__.py",
>> line 41, in start
>>     shell.run(**kwds)
>>   File
>> "/data1/farrokh/Pylith/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/applications/Shell.py",
>> line 125, in run
>>     app.applyConfiguration(context)
>>   File
>> "/data1/farrokh/Pylith/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/inventory/Configurable.py",
>> line 84, in applyConfiguration
>>     raise ValueError("%s\nBacktrace - Component %s" % (err.message,
>> aliases))
>> ValueError: Error while configuring spatial database reader
>> (simpleioascii, iohandler):
>> Filename for spatial database not specified.
>> Backtrace - Component simpleioascii, iohandler
>> Backtrace - Component simpledb, db_properties
>> Backtrace - Component slipweakening, friction
>> Backtrace - Component faultcohesivedyn, NF1
>> Backtrace - Component interfaces
>> Backtrace - Component timedependent, problem
>> Backtrace - Component pylithapp
>>
>> Farrokh Sheibani, PhD
>> Postdoctoral Research Associate
>> Department of Earth Atmospheric and Planetary Sciences; Earth
>> Resources Laboratory
>> Massachusetts Institute of Technology
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> CIG-SHORT mailing list
>> CIG-SHORT at geodynamics.org <mailto:CIG-SHORT at geodynamics.org>
>> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/cig-short
>
> *Charles Williams I Geodynamic Modeler
> GNS Science **I** Te Pῡ Ao*
> 1 Fairway Drive, Avalon 5010, PO Box 30368, Lower Hutt 5040, New Zealand
> *Ph* 0064-4-570-4566 I *Mob* 0064-22-350-7326 I *Fax* 0064-4-570-4600*_
> _**http://www.gns.cri.nz/* *I* *Email: **C.Williams at gns.cri.nz*
> <mailto:your.email at gns.cri.nz>
>
>
>
> _______________________________________________
> CIG-SHORT mailing list
> CIG-SHORT at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/cig-short
>



More information about the CIG-SHORT mailing list