Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion case/axial_optimization/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ flight_plan = flight_plan_BLT.csv
# Thruster configuration data.
[tcd]
# Thruster Configuration File - contains thruster orientation, position, and type data.
tcf = tcf.txt
tcf = tcf_24_thrusters.txt
# Cluster Configuration File - contains cluster orientation and position.
ccf = ccf.txt
# Thruster Grouping File - contains thruster groups.
Expand Down
8 changes: 7 additions & 1 deletion case/axial_optimization/stl/transform_cluster.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('cluster.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'cluster.stl'))

mesh.translate([-0.306/2,-0.325/2,-0.3799/2]) # center on origin

Expand Down
8 changes: 7 additions & 1 deletion case/axial_optimization/stl/transform_lm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('lm.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'lm.stl'))

# center radially on x-axis and align face of LM's docking port to plane at x = 0
mesh.translate([-9.605,-9.659079/2,-9.659079/2])
Expand Down
8 changes: 7 additions & 1 deletion case/axial_optimization/stl/transform_thruster.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import numpy as np
import math

# for example
cant_angle = 0

mesh = mesh.Mesh.from_file('thruster_ATV216.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'thruster_ATV216.stl'))

# center on origin
mesh.translate([-0.19/2,-0.095/2,-0.095/2])
Expand Down
11 changes: 0 additions & 11 deletions case/cant_optimization/jfh/flight_plan_BLT.csv

This file was deleted.

2 changes: 0 additions & 2 deletions case/cant_optimization/jfh/jfh_blank.A

This file was deleted.

Binary file removed case/cant_optimization/stl/cluster.stl
Binary file not shown.
Binary file removed case/cant_optimization/stl/cluster_transformed.stl
Binary file not shown.
Binary file removed case/cant_optimization/stl/lm_transformed.stl
Binary file not shown.
Binary file removed case/cant_optimization/stl/thruster_ATV216.stl
Binary file not shown.
Binary file not shown.
8 changes: 7 additions & 1 deletion case/cant_optimization/stl/transform_cluster.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('cluster.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'cluster.stl'))

mesh.translate([-0.306/2,-0.325/2,-0.3799/2]) # center on origin

Expand Down
8 changes: 7 additions & 1 deletion case/cant_optimization/stl/transform_lm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('lm.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'lm.stl'))

# center radially on x-axis and align face of LM's docking port to plane at x = 0
mesh.translate([-9.605,-9.659079/2,-9.659079/2])
Expand Down
8 changes: 7 additions & 1 deletion case/cant_optimization/stl/transform_thruster.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import numpy as np
import math

# for example
cant_angle = 0

mesh = mesh.Mesh.from_file('thruster_ATV216.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'thruster_ATV216.stl'))

# center on origin
mesh.translate([-0.19/2,-0.095/2,-0.095/2])
Expand Down
Binary file removed case/cant_sweep/stl/cluster.stl
Binary file not shown.
Binary file removed case/cant_sweep/stl/cluster_transformed.stl
Binary file not shown.
Binary file removed case/cant_sweep/stl/square_plate_large.stl
Binary file not shown.
Binary file removed case/cant_sweep/stl/thruster_ATV216.stl
Binary file not shown.
Binary file removed case/cant_sweep/stl/thruster_ATV216_transformed.stl
Binary file not shown.
8 changes: 7 additions & 1 deletion case/cant_sweep/stl/transform_cluster.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('cluster.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'cluster.stl'))

mesh.translate([-0.306/2,-0.325/2,-0.3799/2]) # center on origin

Expand Down
8 changes: 7 additions & 1 deletion case/cant_sweep/stl/transform_lm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('logistics_module.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'logistics_module.stl'))

mesh.points = 1000 * mesh.points

Expand Down
10 changes: 8 additions & 2 deletions case/cant_sweep/stl/transform_square_plate_large.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('square_plate_large.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'square_plate_large_fine.stl'))

mesh.translate([-1/2, -24, -24])

mesh.save('square_plate_large_transformed.stl')
mesh.save('square_plate_large_transformed.stl')
8 changes: 7 additions & 1 deletion case/cant_sweep/stl/transform_thruster.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import numpy as np
import math

# for example
cant_angle = 0

mesh = mesh.Mesh.from_file('thruster_ATV216.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'thruster_ATV216.stl'))

# center on origin
mesh.translate([-0.19/2,-0.095/2,-0.095/2])
Expand Down
2 changes: 1 addition & 1 deletion case/flow_visualization/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ flight_plan = flight_plan_BLT.csv
# Thruster Configuration File - contains thruster orientation, position, and type data.
# NOTE: When changing number of thrusters, must edit rpod.edit_1d_JFH
# hardcoded active thrusters
tcf = tcf_003.txt
tcf = tcf_BLT.txt
# Cluster Configuration File - contains cluster orientation and position.
ccf = ccf.txt
# Thruster Grouping File - contains thruster groups.
Expand Down
11 changes: 0 additions & 11 deletions case/flow_visualization/jfh/flight_plan_BLT.csv

This file was deleted.

Binary file removed case/flow_visualization/stl/cluster.stl
Binary file not shown.
Binary file removed case/flow_visualization/stl/cluster_transformed.stl
Binary file not shown.
Binary file removed case/flow_visualization/stl/lm_transformed.stl
Binary file not shown.
Binary file removed case/flow_visualization/stl/thruster_ATV216.stl
Binary file not shown.
Binary file not shown.
8 changes: 7 additions & 1 deletion case/flow_visualization/stl/transform_cluster.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('cluster.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'cluster.stl'))

mesh.translate([-0.306/2,-0.325/2,-0.3799/2]) # center on origin

Expand Down
8 changes: 7 additions & 1 deletion case/flow_visualization/stl/transform_lm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('lm.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'lm.stl'))

# center radially on x-axis and align face of LM's docking port to plane at x = 0
mesh.translate([-9.605,-9.659079/2,-9.659079/2])
Expand Down
8 changes: 7 additions & 1 deletion case/flow_visualization/stl/transform_thruster.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import numpy as np
import math

# for example
cant_angle = 0

mesh = mesh.Mesh.from_file('thruster_ATV216.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'thruster_ATV216.stl'))

# center on origin
mesh.translate([-0.19/2,-0.095/2,-0.095/2])
Expand Down
31 changes: 0 additions & 31 deletions case/flow_visualization/tcd/24_tcf_legend.txt

This file was deleted.

29 changes: 0 additions & 29 deletions case/flow_visualization/tcd/tcf_003.txt

This file was deleted.

2 changes: 0 additions & 2 deletions case/mdao/cant_sweep/jfh/jfh_blank.A

This file was deleted.

8 changes: 7 additions & 1 deletion case/mdao/cant_sweep/stl/transform_flat_plate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('flat_plate_low_res.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'flat_plate_low_res.stl'))

mesh.translate([-1/2, -70/2, -10/2])

Expand Down
4 changes: 2 additions & 2 deletions case/mdao/trade_study/config.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# STL files of the Target and Visiting Vehicle for RPOD analysis.
[vv]
stl_lm = cylinder_transformed.stl
stl_thruster = mold_funnel_transformed.stl
stl_thruster = mold_funnel_high_res_transformed.stl

[tv]
stl = square_plate_low_res_transformed.stl
Expand Down Expand Up @@ -47,7 +47,7 @@ jfh = jfh_1d_approach.A
# Thruster configuration data.
[tcd]
# Thruster Configuration File - contains thruster orientation, grouping, and type data.
tcf = tcf.txt
tcf = tcf_4_thrusters.txt
# Thruster Grouping File - contains thruster groups.
tgf = tgf.ini
# Thruster Definition File - contains thruster performance data as defined by thruster type.
Expand Down
Binary file removed case/mdao/trade_study/stl/cylinder_transformed.stl
Binary file not shown.
Binary file removed case/mdao/trade_study/stl/gateway.stl
Binary file not shown.
10 changes: 8 additions & 2 deletions case/mdao/trade_study/stl/transform_mold_funnel.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('mold_funnel.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'mold_funnel_high_res.stl'))

mesh.translate([-0.217368/2, -1.6/2, -1.6/2])

mesh.save('mold_funnel_transformed.stl')
mesh.save('mold_funnel_high_res_transformed.stl')
8 changes: 7 additions & 1 deletion case/mdao/trade_study/stl/transform_square_plate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from stl import mesh
from pathlib import Path
_repo_root = next(
p for p in Path(__file__).resolve().parents
if (p / 'data').is_dir() and (p / 'pyrpod').is_dir()
)
_DATA_STL = _repo_root / 'data' / 'stl'
import math

mesh = mesh.Mesh.from_file('square_plate_low_res.stl')
mesh = mesh.Mesh.from_file(str(_DATA_STL / 'square_plate_low_res.stl'))

mesh.translate([-1/2, -12, -12])

Expand Down
Loading
Loading