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
fluidparticles
MigFlow
Commits
b17b5fe6
Commit
b17b5fe6
authored
Dec 15, 2017
by
Jonathan Lambrechts
Browse files
re-organise file-structure
parent
af987753
Changes
38
Hide whitespace changes
Inline
Side-by-side
marblesbag/
scontact/quadtree.c
→
scontact/quadtree.c
View file @
b17b5fe6
File moved
marblesbag/
scontact/quadtree.h
→
scontact/quadtree.h
View file @
b17b5fe6
File moved
marblesbag/
scontact/scontact.c
→
scontact/scontact.c
View file @
b17b5fe6
File moved
marblesbag/
scontact/scontact.h
→
scontact/scontact.h
View file @
b17b5fe6
File moved
marblesbag/
scontact/vector.h
→
scontact/vector.h
View file @
b17b5fe6
File moved
marblesbag/
src/fluid_problem.c
→
src/fluid_problem.c
View file @
b17b5fe6
File moved
marblesbag/
src/fluid_problem.h
→
src/fluid_problem.h
View file @
b17b5fe6
File moved
marblesbag/
src/fluid_problem_io.c
→
src/fluid_problem_io.c
View file @
b17b5fe6
File moved
marblesbag/
src/mbxml.c
→
src/mbxml.c
View file @
b17b5fe6
File moved
marblesbag/
src/mbxml.h
→
src/mbxml.h
View file @
b17b5fe6
File moved
marblesbag/
src/mesh.c
→
src/mesh.c
View file @
b17b5fe6
File moved
marblesbag/
src/mesh.h
→
src/mesh.h
View file @
b17b5fe6
File moved
marblesbag/
src/mesh_find.c
→
src/mesh_find.c
View file @
b17b5fe6
File moved
marblesbag/
src/mesh_find.h
→
src/mesh_find.h
View file @
b17b5fe6
File moved
marblesbag/
src/tools.h
→
src/tools.h
View file @
b17b5fe6
File moved
marblesbag/
src/yxml.c
→
src/yxml.c
View file @
b17b5fe6
File moved
marblesbag/
src/yxml.h
→
src/yxml.h
View file @
b17b5fe6
File moved
testcases/shaker/shaker.py
View file @
b17b5fe6
...
@@ -45,7 +45,7 @@ tEnd = 100
...
@@ -45,7 +45,7 @@ tEnd = 100
#numerical parameters
#numerical parameters
lcmin
=
0.001
# approx r*100 but should match the mesh size
lcmin
=
0.001
# approx r*100 but should match the mesh size
dt
=
1e-4
/
5
dt
=
1e-4
*
10
alpha
=
2.5e-6
alpha
=
2.5e-6
epsilon
=
alpha
*
lcmin
**
2
/
nu
epsilon
=
alpha
*
lcmin
**
2
/
nu
print
(
'epsilon'
,
epsilon
)
print
(
'epsilon'
,
epsilon
)
...
@@ -75,14 +75,12 @@ def outerBndV(x) :
...
@@ -75,14 +75,12 @@ def outerBndV(x) :
print
(.
05
/
((
ii
-
11000
)
%
bndLoop
+
1
))
print
(.
05
/
((
ii
-
11000
)
%
bndLoop
+
1
))
return
.
05
/
((
ii
-
11000
)
%
bndLoop
+
1
)
return
.
05
/
((
ii
-
11000
)
%
bndLoop
+
1
)
strong_boundaries
=
[(
"Top"
,
2
,
0.
),(
"TopOut"
,
1
,
outerBndV
),(
"TopOut"
,
0
,
0.
),(
"Top"
,
1
,
outerBndV
),(
"BottomOut"
,
1
,
outerBndV
),(
"BottomOut"
,
0
,
0.
),(
"Bottom"
,
1
,
outerBndV
),(
"Lateral"
,
0
,
0.
)]
strong_boundaries
=
[(
"Top"
,
2
,
0.
),(
"TopOut"
,
1
,
outerBndV
),(
"TopOut"
,
0
,
0.
),(
"Top"
,
1
,
outerBndV
),(
"BottomOut"
,
1
,
outerBndV
),(
"BottomOut"
,
0
,
0.
),(
"Bottom"
,
1
,
outerBndV
),(
"Lateral"
,
0
,
0.
)]
fluid
=
fluid
.
fluid_problem
(
"mesh.msh"
,
g
,
nu
*
rho
,
rho
,
epsilon
,
strong_boundaries
)
fluid
=
fluid
.
fluid_problem
(
"mesh.msh"
,
g
,
nu
*
rho
,
rho
,
epsilon
,
strong_boundaries
)
fluid
.
set_particles
(
p
.
mass
(),
p
.
volume
(),
p
.
position
(),
p
.
velocity
())
fluid
.
set_particles
(
p
.
mass
(),
p
.
volume
(),
p
.
position
(),
p
.
velocity
())
fluid
.
export
(
outputdir
,
0
,
0
)
fluid
.
export
(
outputdir
,
0
,
0
)
tic
=
time
.
clock
()
tic
=
time
.
clock
()
forces
=
g
*
p
.
mass
()
forces
=
g
*
p
.
mass
()
fluid
.
set_particles
(
p
.
mass
(),
p
.
volume
(),
p
.
position
(),
p
.
velocity
())
fluid
.
set_particles
(
p
.
mass
(),
p
.
volume
(),
p
.
position
(),
p
.
velocity
())
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
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