-
Notifications
You must be signed in to change notification settings - Fork 9
/
stationaryExample.m
47 lines (37 loc) · 1.39 KB
/
stationaryExample.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Example which computes effective diffusvity
% tensor of an SVE. Comutations are based on
% stationary simmulations.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear all
close all
addpath([pwd,'/classFiles'])
addpath([pwd,'/misc'])
warning('off','all')
% % create object
SVE = SVEclass;
% % set properties
SVE.nx = 40;
SVE.realizationNumber = 1;
SVE.Lbox = 2;
SVE.aggFrac = 0.3;
% % input for 'generateSVE()'
ballastRadii = [20 8 4 2]/2/10; % Radius in [cm]. From http://www.sciencedirect.com/science/article/pii/S0168874X05001563
gravelSieve = [.25 .25 .35 .15]; % Distribution in fraction. sum(gravelSieve) should be 1.0
domainFactor = 1.5; % ballast particles are distributed inside domainFactor*LBox
% % set SVE boundary type
% % 1 = physical boundary where no aggregates cut the boundary surface
% % default value is 0 if not set by user
% SVE.boundary.x.back = 1;
% SVE.boundary.x.front = 1;
% SVE.boundary.y.back = 1;
% SVE.boundary.y.front = 1;
% SVE.boundary.z.back = 1;
% SVE.boundary.z.front = 1;
% % apply methods
SVE.setPath(); % uses current working directory
% SVE.setPath('C:\optional\path'); % if you want files to be saved elsewhere
SVE.generateSVE(SVE.aggFrac,ballastRadii,gravelSieve,SVE.Lbox,domainFactor);
SVE.meshSVE();
SVE.writeTopology();
SVE.computeEffectiveDiffusivtyTensor();