Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
92b1e9ce
Commit
92b1e9ce
authored
Oct 09, 2015
by
Praetorius, Simon
Browse files
extensions: std namespaces added
parent
4b686a34
Changes
1
Hide whitespace changes
Inline
Side-by-side
extensions/BoundaryFunctions.h
View file @
92b1e9ce
...
...
@@ -107,7 +107,7 @@ public:
BoundaryFct2
()
:
AbstractFunction
<
double
,
WorldVector
<
double
>
>
(
1
),
y
(
0.205
),
c
(
6.0
)
{};
BoundaryFct2
(
double
y_
,
double
c_
)
:
AbstractFunction
<
double
,
WorldVector
<
double
>
>
(
1
),
y
(
y_
),
c
(
c_
)
{};
double
operator
()(
const
WorldVector
<
double
>&
x
)
const
{
return
1.0
/
sqr
(
2.0
*
y
)
*
sin
(
m_pi
*
(
*
timePtr
)
/
8.0
)
*
c
*
(
y
+
x
[
1
])
*
(
y
-
x
[
1
]);
return
1.0
/
sqr
(
2.0
*
y
)
*
std
::
sin
(
m_pi
*
(
*
timePtr
)
/
8.0
)
*
c
*
(
y
+
x
[
1
])
*
(
y
-
x
[
1
]);
};
protected:
double
y
,
c
;
...
...
@@ -119,7 +119,7 @@ public:
BoundaryFct2_robin
()
:
AbstractFunction
<
double
,
WorldVector
<
double
>
>
(
1
),
y
(
0.205
),
c
(
6.0
)
{};
BoundaryFct2_robin
(
double
y_
,
double
c_
)
:
AbstractFunction
<
double
,
WorldVector
<
double
>
>
(
1
),
y
(
y_
),
c
(
c_
)
{};
double
operator
()(
const
WorldVector
<
double
>&
x
)
const
{
double
result
=
1.0
/
sqr
(
2.0
*
y
)
*
sin
(
m_pi
*
(
*
timePtr
)
/
8.0
)
*
c
*
(
y
+
x
[
1
])
*
(
y
-
x
[
1
]);
double
result
=
1.0
/
sqr
(
2.0
*
y
)
*
std
::
sin
(
m_pi
*
(
*
timePtr
)
/
8.0
)
*
c
*
(
y
+
x
[
1
])
*
(
y
-
x
[
1
]);
double
n
=
(
x
[
0
]
<
0.0
?-
1.0
:
1.0
);
return
-
1.0
*
result
*
n
;
};
...
...
@@ -138,8 +138,8 @@ class StokesFlow : public AbstractFunction<WorldVector<double>, WorldVector<doub
Initfile
::
get
(
"user parameter->colloidal radius"
,
R
,
1
);
Initfile
::
get
(
"pfc-parameter->density"
,
density
,
1
);
Initfile
::
get
(
"pfc-parameter->r"
,
r
,
1
);
radius
=
R
/
(
1.0
-
R
)
*
2.0
*
m_pi
/
sqrt
(
3.0
);
D
=
radius
+
2.0
*
m_pi
/
sqrt
(
3.0
);
radius
=
R
/
(
1.0
-
R
)
*
2.0
*
m_pi
/
std
::
sqrt
(
3.0
);
D
=
radius
+
2.0
*
m_pi
/
std
::
sqrt
(
3.0
);
center
.
set
(
0.0
);
Initfile
::
get
(
"user parameter->colloids position[0]"
,
center
,
1
);
...
...
@@ -176,8 +176,8 @@ class StokesFlow_component : public AbstractFunction<double, WorldVector<double>
Initfile
::
get
(
"user parameter->colloidal radius"
,
R
,
1
);
Initfile
::
get
(
"pfc-parameter->density"
,
density
,
1
);
Initfile
::
get
(
"pfc-parameter->r"
,
r
,
1
);
radius
=
R
/
(
1.0
-
R
)
*
2.0
*
m_pi
/
sqrt
(
3.0
);
D
=
radius
+
2.0
*
m_pi
/
sqrt
(
3.0
);
radius
=
R
/
(
1.0
-
R
)
*
2.0
*
m_pi
/
std
::
sqrt
(
3.0
);
D
=
radius
+
2.0
*
m_pi
/
std
::
sqrt
(
3.0
);
center
.
set
(
0.0
);
Initfile
::
get
(
"user parameter->colloids position[0]"
,
center
,
1
);
...
...
@@ -215,8 +215,8 @@ class StokesFlow_robin : public AbstractFunction<double, WorldVector<double> >
Initfile
::
get
(
"user parameter->colloidal radius"
,
R
,
1
);
Initfile
::
get
(
"pfc-parameter->density"
,
density
,
1
);
Initfile
::
get
(
"pfc-parameter->r"
,
r
,
1
);
radius
=
R
/
(
1.0
-
R
)
*
2.0
*
m_pi
/
sqrt
(
3.0
);
D
=
radius
+
2.0
*
m_pi
/
sqrt
(
3.0
);
radius
=
R
/
(
1.0
-
R
)
*
2.0
*
m_pi
/
std
::
sqrt
(
3.0
);
D
=
radius
+
2.0
*
m_pi
/
std
::
sqrt
(
3.0
);
center
.
set
(
0.0
);
Initfile
::
get
(
"user parameter->colloids position[0]"
,
center
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment