Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ti convect #4

Open
wants to merge 78 commits into
base: Treasure_Island
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
24bd7a1
add gradient in x direction
shyaan Aug 16, 2020
6091bdb
a little bit revise
shyaan Aug 17, 2020
ed0568a
add convect
shyaan Aug 20, 2020
35a5e51
add more building piles
shyaan Aug 21, 2020
ca09026
change the perm data
shyaan Aug 21, 2020
3272398
check zero pressure location
shyaan Aug 24, 2020
7b8b67f
change the time recording
shyaan Aug 26, 2020
fc480c0
add return
shyaan Aug 26, 2020
de4a242
cyclic loading
shyaan Aug 27, 2020
caf1fee
10years
shyaan Aug 27, 2020
2fdef6e
reviese a little
shyaan Aug 27, 2020
64fe117
add ;
shyaan Aug 27, 2020
02486d7
change back to one year simulation
shyaan Aug 27, 2020
093c008
change the distr in x direction
shyaan Aug 28, 2020
5ba2ac5
change the pressure distr
shyaan Aug 28, 2020
10cb783
change the boundary
shyaan Aug 28, 2020
59ee5a7
change back
shyaan Aug 29, 2020
c99e211
pressure bd change it to 10000
shyaan Aug 31, 2020
3dd4992
change to cyclic loading
shyaan Aug 31, 2020
a68d06a
fast flow rate
shyaan Aug 31, 2020
79d4226
ticktock
shyaan Sep 3, 2020
51f20b9
ticktock2
shyaan Sep 3, 2020
5360ee9
recover all
shyaan Sep 3, 2020
1776694
remove binary files
shyaan Sep 8, 2020
4b411dc
change inputfiles
shyaan Sep 8, 2020
4407701
add file name
shyaan Sep 8, 2020
bd35e73
add new boundary number
shyaan Sep 9, 2020
1507476
little revise
shyaan Sep 9, 2020
c03bb30
little revise
shyaan Sep 9, 2020
95b6a58
change the g_T_seabed_grad
shyaan Sep 10, 2020
9d19867
change the bnd
shyaan Sep 11, 2020
5351eeb
change comma
shyaan Sep 11, 2020
a4cea77
add parameter settings and change the wellbore T
shyaan Sep 25, 2020
dad9228
revise the surface gp coord
shyaan Sep 25, 2020
cf5d13c
change the p gradient
shyaan Sep 26, 2020
53f2207
change the Tb well boundary
shyaan Sep 26, 2020
5d521b7
Merge pull request #10 from shyaan/TI_convect
shyaan Sep 26, 2020
ec3a5a5
reset the wellbore boundary
shyaan Sep 26, 2020
cab2a9d
reset boundary
shyaan Sep 26, 2020
068a84f
60m T
shyaan Sep 26, 2020
01c00f5
change the pressure grad
shyaan Sep 26, 2020
3d70f1f
cyclic loading
shyaan Sep 27, 2020
aa0f3ac
change bnd settins
shyaan Sep 27, 2020
85ffe16
revise a tiny mistake
shyaan Sep 27, 2020
11b6cd5
change flow rate
shyaan Sep 27, 2020
67338c5
revising the boundary conditions
shyaan Sep 30, 2020
0a90f8c
change the boudnary settings
shyaan Sep 30, 2020
0399af3
change to high perm
shyaan Sep 30, 2020
b4dddee
high speed
shyaan Oct 1, 2020
841909b
change the flow rate
shyaan Oct 1, 2020
ce49872
debug convection
shyaan Oct 1, 2020
3d11dad
change the conductivity
shyaan Oct 1, 2020
3f59e72
remove the distribution of thermal coeeficitent
shyaan Oct 1, 2020
ee64453
change baeck
shyaan Oct 1, 2020
3ebce53
remove convection
shyaan Oct 2, 2020
9d363f1
apply p gradient
shyaan Oct 2, 2020
b00c856
Merge pull request #11 from shyaan/TI_convect
shyaan Oct 2, 2020
374a37c
CHANGE THE BOUNDARY OF PRESSURE
shyaan Oct 2, 2020
708b563
change time step
shyaan Oct 2, 2020
d82a0fb
decrease the magnitude of injection
shyaan Oct 2, 2020
0d5a79d
change the time step
shyaan Oct 2, 2020
053a49c
change back the magnitude
shyaan Oct 2, 2020
dc3dba0
change back
shyaan Oct 2, 2020
d0d9b46
change bulk modulus
shyaan Oct 2, 2020
73ca0d0
larger B_w
shyaan Oct 3, 2020
4b8ecf1
increase permeability
shyaan Oct 3, 2020
be063ca
add pressure difference
shyaan Oct 3, 2020
21765a4
change the dimension
shyaan Oct 3, 2020
157c277
applied seasonal top changing
shyaan Oct 3, 2020
31073d4
includ externalfunc
shyaan Oct 3, 2020
4310702
change the unit of temperature
shyaan Oct 3, 2020
4391965
reduce perm
shyaan Oct 3, 2020
0df6731
APPLY LOW T AT BOTTOM BOUNDARY
shyaan Oct 4, 2020
87d212a
revise a tiny error
shyaan Oct 4, 2020
7c8c714
change mesh
shyaan Oct 5, 2020
0dd0ba0
Merge pull request #12 from shyaan/TI_convect
shyaan Oct 6, 2020
7cc80ec
change back
shyaan Oct 10, 2020
2f86759
Merge pull request #13 from shyaan/TI_convect
shyaan Oct 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Makefile
.DS_Store*
*.o*
*~
inputfiles/*
*.vtk
*.orig
*.tar.gz
Expand Down
45 changes: 28 additions & 17 deletions include/boundaryvalues.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#include <deal.II/numerics/vector_tools.h>
#include <fstream>
#include <iostream>
#include <math.h>

#include "externalfunc.h"
#include "globalvariables.h"

using namespace dealii;
Expand All @@ -14,18 +16,19 @@ namespace EquationData {
template <int dim>
class PressureDirichletBoundaryValues : public Function<dim> {
private:
const double period_; // value
double period_; // value
int boundary_id_{-1};
int bd_i_;

public:
PressureDirichletBoundaryValues()
: Function<dim>(), period_(0.2), bd_i_(0) {} // 之前的没有
: Function<dim>(), period_(0), bd_i_(0) {} // 之前的没有
virtual double value(const Point<dim>& p,
const unsigned int component = 0) const; // boundary
virtual void get_bd_i(int bd_i) { bd_i_ = bd_i; }
// virtual void vector_value(const Point<dim>& p, //放在这里没啥用
// Vector<double>& value) const;
virtual void get_period(double period) { period_ = period; }
virtual void set_boundary_id(int bnd_id) { boundary_id_ = bnd_id; }
};

Expand All @@ -42,23 +45,23 @@ double PressureDirichletBoundaryValues<dim>::value(
// g_P_bnd_id + g_num_P_bnd_id) {
// return g_Pb_top + g_P_grad * (0. - p[2]);
// }
return g_Pb_top + g_P_grad * (0. - p[2]);
return g_Pb_top + g_P_grad * (0. - p[2]) - g_P_grad_x * (-1672 - p[0]);
}

template <int dim>
class PressureNeumanBoundaryValues : public Function<dim> {
private:
const double period_; // value
double period_; // value
int boundary_id_{-1};
int bd_i_;

public:
PressureNeumanBoundaryValues()
: Function<dim>(), period_(0.2), bd_i_(0) {} // 之前的没有
: Function<dim>(), period_(0), bd_i_(0) {} // 之前的没有
virtual void get_bd_i(int bd_i) { bd_i_ = bd_i; };
virtual double value(const Point<dim>& p,
const unsigned int component = 0) const; // boundary

virtual void get_period(double period) { period_ = period; }
// virtual void vector_value(const Point<dim>& p, //放在这里没啥用
// Vector<double>& value) const;
virtual void set_boundary_id(int bnd_id) { boundary_id_ = bnd_id; }
Expand All @@ -78,14 +81,15 @@ double PressureNeumanBoundaryValues<dim>::value(
template <int dim>
class TemperatureDirichletBoundaryValues : public Function<dim> {
private:
const double period_; // value
double period_; // value
int boundary_id_{-1};
int bd_i_;

public:
TemperatureDirichletBoundaryValues()
: Function<dim>(), period_(0.2), bd_i_(0) {} // 之前的没有
: Function<dim>(), period_(0), bd_i_(0) {} // 之前的没有
virtual void get_bd_i(int bd_i) { bd_i_ = bd_i; };
virtual void get_period(double period) { period_ = period; }
virtual double value(const Point<dim>& p,
const unsigned int component = 0) const; // boundary
// virtual void vector_value(const Point<dim>& p, //放在这里没啥用
Expand All @@ -104,13 +108,19 @@ double TemperatureDirichletBoundaryValues<dim>::value(
const double time = this->get_time();

if (bd_i_ == 0) {
return g_Tb_well;
} else if (bd_i_ == 1 || bd_i_ == 2) {
return g_Tb_top + g_T_grad * (0. - p[2]);
if (time <= period_ / 2) {
return g_Tb_well + 14;
} else {
return g_Tb_well - 14;
}

} else if (bd_i_ == 1) {
return interpolate1d(g_Tb_top_seasonal, time, false);
// return g_Tb_top;
} else {
return g_Tb_seabed_top + g_T_seabed_grad * (0. - p[2]);
return g_Tb_top + g_T_grad * (0. - p[2]);
}
}
} // namespace EquationData

// template <int dim>
// void TemperatureDirichletBoundaryValues<dim>::vector_value(
Expand All @@ -122,14 +132,15 @@ double TemperatureDirichletBoundaryValues<dim>::value(
template <int dim>
class TemperatureNeumanBoundaryValues : public Function<dim> {
private:
const double period; // value
double period_; // value
int boundary_id_{-1};
int bd_i_;

public:
TemperatureNeumanBoundaryValues()
: Function<dim>(), period(0.2), bd_i_(0) {} // 之前的没有
virtual void get_bd_i(int bd_i) { bd_i_ = bd_i; };
: Function<dim>(), period_(0), bd_i_(0) {} // 之前的没有
virtual void get_bd_i(int bd_i) { bd_i_ = bd_i; }
virtual void get_period(double period) { period_ = period; }
virtual double value(const Point<dim>& p,
const unsigned int component = 0) const; // boundary
// virtual void vector_value(const Point<dim>& p, //放在这里没啥用
Expand All @@ -146,7 +157,7 @@ double TemperatureNeumanBoundaryValues<dim>::value(
// Assert(dim == 3, ExcNotImplemented());

const double time = this->get_time();
return g_QT_top;
return g_QT_bottom;
}

// template <int dim>
Expand Down
Loading