Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MOAMMM
moammmPublic
code
Commits
6fb9e37d
Commit
6fb9e37d
authored
2 years ago
by
noels
Browse files
Options
Downloads
Patches
Plain Diff
print voxel
parent
899952c2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Lattice_Cell_script/Auto_geometry_parametric.py
+5
-5
5 additions, 5 deletions
Lattice_Cell_script/Auto_geometry_parametric.py
Lattice_Cell_script/utils_geo.py
+1
-1
1 addition, 1 deletion
Lattice_Cell_script/utils_geo.py
with
6 additions
and
6 deletions
Lattice_Cell_script/Auto_geometry_parametric.py
+
5
−
5
View file @
6fb9e37d
...
...
@@ -20,9 +20,9 @@ from scipy.spatial import distance
from
scipy.optimize
import
minimize
from
mpl_toolkits.mplot
3
d
import
Axes3D
from
mpl_toolkits.mplot3d.art3d
import
Poly3DCollection
,
Line3DCollection
import
matplotlib.pyplot
as
plt
#
from mpl_toolkits.mplot
2
d import Axes3D
#
from mpl_toolkits.mplot3d.art3d import Poly3DCollection, Line3DCollection
#
import matplotlib.pyplot as plt
import
time
import
sys
...
...
@@ -585,8 +585,8 @@ Physical Volume(51) ={AllVol()};"""
contents
=
""
.
join
(
contents
)
f
.
write
(
contents
)
f
.
close
()
os
.
system
(
"
rm vox_
"
+
rho
+
"
.geo
"
)
os
.
system
(
"
rm phase_map_
"
+
rho
+
"
.geo
"
)
#
os.system("rm vox_"+rho+".geo")
#
os.system("rm phase_map_"+rho+".geo")
return
GeoFile
,
r0
...
...
This diff is collapsed.
Click to expand it.
Lattice_Cell_script/utils_geo.py
+
1
−
1
View file @
6fb9e37d
...
...
@@ -20,7 +20,7 @@ import os
def
voxelized
(
name
,
vfr
,
vfraction
,
rho
,
sb
,
x_cell
,
y_cell
,
z_cell
,
length
,
width
,
height
,
A
,
B
):
######
#
Create voxelized mesh -- CALCULATES VOLUME FRACTION
print
(
"
Create voxelized mesh -- CALCULATES VOLUME FRACTION
"
)
######
#####Voxelized mesh#####
#number of voxels in the unit cell
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment