## DFN Domain

Posted on

Defining arbitrary domain limits for DFN model The DFN function in ADFNE1.5 can easily be modified to accommodate any desired domain size. The following shows how it is done properly. First, update the opt structure (line 42) as follows. opt = Option(varargin,’n’,100,’minl’,0.05,’mu’,0.3,’maxl’,0.6,… % default arguments’bbx’,[0,0,1,1],’dim’,2,’asep’,0,’dsep’,0,’mit’,100,’scale’,1,…’shape’,’c’,’q’,24,’dip’,45,’ddip’,-1e-7,’dir’,0,’ddir’,-1e-7,’pos’,[]); % domain added You notice that we simply added a new argument pos. Now we […]

## Code Snippets

Posted on

Here I start posting some quick blog posts that include code snippets. These are my developed codes, are very helpful for developing new applications. To use them in your projects, studies etc. Conversion between Matlab Editions The following operation pts = rand(10,3)-[1,2,3]; translates in Matlab’s earlier editions (< 2016) to pts = bsxfun(@minus,rand(10,3),[1,2,3]); Connectivity Analysis The paper Fadakar-A Y, Dowd […]

## Flow in Pipes

Posted on

The distribution of pressure field in the network (modeled by pipes) is majorly affected by the density of fractures and fracture intersections (i.e., effective interconnectivity) as demonstrated in the following figures. In the example below the entire pressure gradient had to be fitted on only one fracture (pipe) causing the effect of grouping for the rest of network. The values […]

## Done Projects

Posted on

Conditional DFN Models The modeling of conditional DFN models is an easy task in ADFNE1.5 as there are all tools available for testing intersection between fractures efficiently and for applying termination rules, for example. These examples here were done with a less than a page of code in ADFNE1.5. Pluri-Gaussian Simulations, 2D Pluri-Gaussian simulations of formations (e.g., reservoir structure) made […]

## Quick Studies

Posted on

Some quick studies conducted by means of ADFNE series. DFNE: Percolation Study Used DFN model includes omnidirectional 3D fractures, randomly positioned in the space, and limited to Scale (Smax = [0.025…0.5]) and with Fracture Population (N = [25…500]). The following figures show an example and the obtained results from 100 realizations. From the figure (table) below it is clear that […]

## DFN Pipe Model

Posted on

Two forms of generating pipes for any 3D DFN model  are demonstrated below. Form 1 Form 2 Form 1 Form 2

## Generic Coding

Posted on

Isn’t it amazing to have one and only one function that handles smartly and automatically different scenarios such as diversity in inputs and outputs? It is, indeed. Such philosophy requires some more and deeper planning for the code so to be generic, comprehensive and easy to use. The resulting functions are outstanding. Moreover, such philosophy provides a unique workbench well […]

## DFNE Examples

Posted on

DFNE Examples, ADFNE series Using ADFNE for generating, simulation and characterization of fracture networks is quite straightforward and easy. In the following examples, you can see how short, readable and sensible its applications are. Read the License at Rights page. True Density of 2D Fracture Networks % Alghalandis Discrete Fracture Network Engineering (ADFNE)% Author: Younes Fadakar Alghalandis% Copyright (c) 2016 […]