New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multi fault rupture format #6715
Comments
Concerning SHERIFS, this would work fine and simplify significantly the source model file which contains very redundant information at the moment. |
Adding a new source typology is hard and tricky. Several changes are needed. Let me document here the steps:
The best approach is to add the source class plus the input and output files of the classical test and leave all the rest to @micheles ! |
I would prefer to keep everything in a single file, i.e. <?xml version='1.0' encoding='utf-8'?>
<nrml xmlns:gml="http://www.opengis.net/gml"
xmlns="http://openquake.org/xmlns/nrml/0.5">
<sourceModel name="Hazard Model" investigation_time="1.0">
<sourceGroup name="group 1" rup_interdep="indep"
src_interdep="indep" tectonicRegion="Active Shallow Crust">
<multiFaultSource id="1" name="Test1">
<faultSections>
<section>
<kiteSurface>
<profile>
<gml:LineString><gml:posList>
10.0 45.0 0.0 10.0 45.5 10.0
</gml:posList></gml:LineString>
</profile>
<profile>
<gml:LineString><gml:posList>
10.5 45.0 0.0 10.5 45.5 10.0
</gml:posList></gml:LineString>
</profile>
</kiteSurface>
</section>
</faultSections>
<multiPlanesRupture probs_occur="0.93144767 0.06855233">
<magnitude>4.7</magnitude>
<sectionIndexes indexes="s1"/>
<hypocenter depth="5.0" lat="45.0" lon="10.0"/>
<rake>90</rake>
</multiPlanesRupture>
<multiPlanesRupture probs_occur="0.93144767 0.06855233">
<magnitude>6.0</magnitude>
<sectionIndexes indexes="s1,s2"/>
<rake>-90</rake>
</multiPlanesRupture>
</multiFaultSource>
</sourceGroup>
</sourceModel>
</nrml> |
mmm, why not defining two files one with ruptures |
That would work for me too. The tricky thing is that different files are read by different cores, so the core reading the ruptures will not have knowledge about the sections :-( |
I like the option of having the sections geometry in a different file. This way, the same file can be use for different sources models (for example, exploring different hypotheses for the multifault ruptures) |
I do not think this is a problem since we check the consistency between sections and ruptures only when we instantiate the multi fault source. |
I see your point Thomas. In this case my solution doesn't work and we need something different. |
Unfortunately the sources are instantiated too early and we will have to change that. What Thomas wants can be done but requires a bit of work. |
After sleeping on it, it turns we need a new concept, a <nrml xmlns:gml="http://www.opengis.net/gml"
xmlns="http://openquake.org/xmlns/nrml/0.5">
<geometryModel name="fault_sections">
<section name="central" id="s1">
<kiteSurface>
<profile>
<gml:LineString><gml:posList>
10.5 45.0 0.0 10.5 45.5 10.0
</gml:posList></gml:LineString>
</profile>
<profile>
<gml:LineString><gml:posList>
10.0 45.0 0.0 10.0 45.5 10.0
</gml:posList></gml:LineString>
</profile>
</kiteSurface>
</section>
<section name="west" id="s2">
<kiteSurface>
<profile>
<gml:LineString><gml:posList>
10.0 45.0 0.0 9.5 45.5 10.0
</gml:posList></gml:LineString>
</profile>
<profile>
<gml:LineString><gml:posList>
9.5 45.0 0.0 9.5 45.5 10.0
</gml:posList></gml:LineString>
</profile>
</kiteSurface>
</section>
</geometryModel>
</nrml> First the engine has to read all the |
We still have the issue of |
This is needed to better support models produced by GI or SHERIFS. In order to move forward we need to define a format for the input. What I suggest at the moment, is to define this source typology using two files. In one file that we could call
fault_sections.xml
we store the geometry of the fault sections with their ID.For example:
The corresponding source model should look like this:
The text was updated successfully, but these errors were encountered: