-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpruebaVF.m
44 lines (29 loc) · 1.09 KB
/
pruebaVF.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
clear all
close all
set(0,'DefaultAxesFontName', 'times')
set(0,'DefaultAxesFontSize', 9)
set(0,'DefaultTextFontname', 'times')
set(0,'DefaultTextFontSize', 9)
% DATOS GEOMETRIA
R = 200;
H = 0.15;
centroMasa = [0, 0];
% CONSTRUCCION MODELO HIDRODINAMICA
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
kranPrueba = GeoKranenburgNew(GeoKranenburgNew(),'radioR', R, 'alturaH', H, 'centroMasa', centroMasa, 'fracDeltaX', 1/10);
cuerpoPrueba = addGeometria(Cuerpo(), kranPrueba);
simCN = Simulacion(Simulacion(), cuerpoPrueba);
simCN = addForzante(simCN, VientoUniforme(Forzante(), 'uAsterisco', 1e-3, 'anguloDireccion', pi/2));
simCN = addMatrices(simCN, Matrices(simCN));
simCN = addResultados(simCN, CrankNicolson(simCN));
%%%%%%%%%%%%%%%%%%%%%%
% AGREGAR VOLUMENES FINITOS
1
% Creo masa
OD = OxigenoDisuelto();
concIniciales = 0.2;
cSat = 8.82e-3;
nEta = getNumeroNodos(simCN);
objetoVF = VolumenesFinitos(VolumenesFinitos(), simCN,'RegimenTemporal', ...
'impermanente', 'Masa', OD, 'Flujos', 'adveccionVerticales', ...
'ConcentracionInicial', concIniciales*cSat*ones(nEta,1));