|
54 | 54 | <li class="toctree-l2"><a class="reference internal" href="#example-1">Example 1</a></li>
|
55 | 55 | <li class="toctree-l2"><a class="reference internal" href="#example-2">Example 2</a></li>
|
56 | 56 | <li class="toctree-l2"><a class="reference internal" href="#generic-under-development">Generic (under development)</a></li>
|
| 57 | +<li class="toctree-l2"><a class="reference internal" href="#back-coupling-under-development">Back-coupling (under development)</a></li> |
57 | 58 | </ul>
|
58 | 59 | </li>
|
59 | 60 | <li class="toctree-l1"><a class="reference internal" href="api.html">expreccs Python API</a></li>
|
|
90 | 91 | <h1>Examples<a class="headerlink" href="#examples" title="Link to this heading"></a></h1>
|
91 | 92 | <section id="example-1">
|
92 | 93 | <h2>Example 1<a class="headerlink" href="#example-1" title="Link to this heading"></a></h2>
|
93 |
| -<p>We consider the configuration file ‘example1.txt’ in the |
| 94 | +<p>We consider the configuration file <a class="reference external" href="https://github.com/cssr-tools/expreccs/blob/main/examples/example1.txt">example1.txt</a> in the |
94 | 95 | examples folder (the animation in the <a class="reference external" href="https://github.com/cssr-tools/expreccs">Github home page</a> was based on this configuration file).
|
95 | 96 | If the results are to be saved in a folder called ‘hello_world’, this is achieved by the following command:</p>
|
96 | 97 | <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>expreccs<span class="w"> </span>-i<span class="w"> </span>example1.txt<span class="w"> </span>-o<span class="w"> </span>hello_world
|
@@ -157,6 +158,34 @@ <h2>Generic (under development)<a class="headerlink" href="#generic-under-develo
|
157 | 158 | </pre></div>
|
158 | 159 | </div>
|
159 | 160 | </section>
|
| 161 | +<section id="back-coupling-under-development"> |
| 162 | +<span id="back-coupling"></span><h2>Back-coupling (under development)<a class="headerlink" href="#back-coupling-under-development" title="Link to this heading"></a></h2> |
| 163 | +<p>We consider the configuration file <a class="reference external" href="https://github.com/cssr-tools/expreccs/blob/main/examples/example1_back.txt">example1_back.txt</a> in the examples folder. |
| 164 | +The plan is to update properties (e.g., transmissibility multipliers) in the regional model from features (e.g., faults) in the site model (i.e., not included in the regional model). |
| 165 | +By running:</p> |
| 166 | +<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>expreccs<span class="w"> </span>-i<span class="w"> </span>example1_back.txt<span class="w"> </span>-o<span class="w"> </span>back-coupling<span class="w"> </span>-m<span class="w"> </span>all<span class="w"> </span>-p<span class="w"> </span>yes |
| 167 | +</pre></div> |
| 168 | +</div> |
| 169 | +<p>This is one of the generated figures:</p> |
| 170 | +<img alt="_images/back-coupling_summary_BPR_regional_reference.png" src="_images/back-coupling_summary_BPR_regional_reference.png" /> |
| 171 | +<p>The figures in the postprocessing includes the results for the first two iterations and the last one (in this case 9 since the number of |
| 172 | +iteration is set to 10 in line 22 of the <a class="reference external" href="https://github.com/cssr-tools/expreccs/blob/main/examples/example1_back.txt">configuration_file</a>). To visualize/compare results |
| 173 | +between any of the iterations, we can use our friend <a class="reference external" href="https://github.com/cssr-tools/plopm">plopm</a>.</p> |
| 174 | +<div class="admonition tip"> |
| 175 | +<p class="admonition-title">Tip</p> |
| 176 | +<p>You can install plopm by executing in the terminal: pip install git+https://github.com/cssr-tools/plopm.git.</p> |
| 177 | +</div> |
| 178 | +<p>For example, to show the difference in the spatial maps for pressure at iteration 4 and 7 at the third restart, this is achieved by executing:</p> |
| 179 | +<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>plopm<span class="w"> </span>-i<span class="w"> </span>back-coupling/output/regional_7/regional_7,back-coupling/output/regional_4/regional_4<span class="w"> </span>-v<span class="w"> </span>pressure<span class="w"> </span>-r<span class="w"> </span><span class="m">3</span><span class="w"> </span>-s<span class="w"> </span>,,1<span class="w"> </span>-c<span class="w"> </span>rainbow<span class="w"> </span>-n<span class="w"> </span><span class="s2">"lambda x, _: f'{x:.2f}'"</span><span class="w"> </span>-d<span class="w"> </span><span class="m">5</span>,5 |
| 180 | +</pre></div> |
| 181 | +</div> |
| 182 | +<img alt="_images/pressure_plopm.png" src="_images/pressure_plopm.png" /> |
| 183 | +<p>And to show the comparison for the summary vector FPR for iterations 1, 5, 7, and 9:</p> |
| 184 | +<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>plopm<span class="w"> </span>-i<span class="w"> </span>back-coupling/output/regional_1/regional_1,back-coupling/output/regional_5/regional_5,back-coupling/output/regional_7/regional_7,back-coupling/output/regional_9/regional_9<span class="w"> </span>-v<span class="w"> </span>fpr<span class="w"> </span>-d<span class="w"> </span><span class="m">5</span>,5<span class="w"> </span>-f<span class="w"> </span><span class="m">10</span> |
| 185 | +</pre></div> |
| 186 | +</div> |
| 187 | +<img alt="_images/fpr_plopm.png" src="_images/fpr_plopm.png" /> |
| 188 | +</section> |
160 | 189 | </section>
|
161 | 190 |
|
162 | 191 |
|
|
0 commit comments