simulProp.FinalTime = 1e7  # the time at which the simulation stops
simulProp.outputTimePeriod = 1.  # the time after the output is generated (saving or plotting)
# simulProp.set_outFileAddress(".\\Data\\leakOff") # the disk address where the files are saved

# initializing fracture
initTime = 0.5
init_param = ("M", "time", initTime)

# creating fracture object
Fr = Fracture(Mesh, init_param, Solid, Fluid, Injection, simulProp)

# create a Controller
controller = Controller(Fr, Solid, Fluid, Injection, simulProp)

# run the simulation
controller.run()

# plotting efficiency
Fig_lk, Fig_eff = plot_leakOff(simulProp.get_outFileAddress())
t = 2**np.linspace(np.log2(0.5), np.log2(1e7), 30)
# solution taken from matlab code provided by Dontsov EV (2016)
eff_analytical = np.asarray([
    0.9923, 0.9904, 0.9880, 0.9850, 0.9812, 0.9765, 0.9708, 0.9636, 0.9547,
    0.9438, 0.9305, 0.9142, 0.8944, 0.8706, 0.8423, 0.8089, 0.7700, 0.7256,
    0.6757, 0.6209, 0.5622, 0.5011, 0.4393, 0.3789, 0.3215, 0.2688, 0.2218,
    0.1809, 0.1461, 0.1171
])
ax_eff = Fig_eff.get_axes()[0]
ax_eff.semilogx(t,
                eff_analytical,
                'r-',
Beispiel #2
0
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

    Development Team: Brain Storm Team
"""

import sys

for _ in ['urllib3', 'json2html', 'tabulate', 'importlib']:
    try:
        __import__(_)
    except ImportError as e:
        sys.exit(
            """\t\t[!] Several dependencies wasn't installed! Please run pip3 install -r requirements.txt. Details : %s."""
            % (error))

if __name__ == "__main__":

    from src import Controller, SrcError
    import sys

    try:
        bootstrap = Controller()
        bootstrap.run()
    except SrcError:
        sys.exit()