From dc33265167ecc0399348473fc6c005027aa12bf3 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Mon, 21 Jun 2021 23:48:45 +0100 Subject: [PATCH 1/3] Add .circleci/config.yml From 48b42177b872fec7caf6763d8a4736854c61ef72 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Mon, 21 Jun 2021 23:48:52 +0100 Subject: [PATCH 2/3] Add .circleci/config.yml From 350441dc37f4557212acc25502d56a4850fe999d Mon Sep 17 00:00:00 2001 From: Mate Date: Mon, 5 Jul 2021 14:25:53 +0100 Subject: [PATCH 3/3] added 3D renders --- docs/source/paramak.parametric_components.rst | 149 ++++++++++++++++++ 1 file changed, 149 insertions(+) diff --git a/docs/source/paramak.parametric_components.rst b/docs/source/paramak.parametric_components.rst index 1775f077f..0c5603a80 100644 --- a/docs/source/paramak.parametric_components.rst +++ b/docs/source/paramak.parametric_components.rst @@ -37,6 +37,21 @@ BlanketConstantThicknessArcH() BlanketConstantThicknessArcV() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. cadquery:: + :select: cadquery_object + :gridsize: 0 + + import paramak + my_component = paramak.BlanketConstantThicknessArcV( + inner_lower_point=(300, -200), + inner_mid_point=(500, 0), + inner_upper_point=(300, 200), + thickness=100, + rotation_angle=180 + ) + + cadquery_object = my_component.solid + |BlanketConstantThicknessArcVstp| |BlanketConstantThicknessArcVsvg| .. |BlanketConstantThicknessArcVstp| image:: https://user-images.githubusercontent.com/8583900/86365020-dee30380-bc70-11ea-8258-5e591c6c3235.png @@ -67,6 +82,19 @@ BlanketCutterParallels() BlanketCutterStar() ^^^^^^^^^^^^^^^^^^^ +.. cadquery:: + :select: cadquery_object + :gridsize: 0 + + import paramak + my_component = paramak.BlanketCutterStar( + height=2000, + width=2000, + distance=100 + ) + + cadquery_object = my_component.solid + |BlanketCutterStarstp| |BlanketCutterStarsvg| .. |BlanketCutterStarstp| image:: https://user-images.githubusercontent.com/8583900/97103699-0178ac80-16a6-11eb-8e5a-ec3575d265fe.png @@ -82,6 +110,21 @@ BlanketCutterStar() BlanketFP() ^^^^^^^^^^^ +.. cadquery:: + :select: cadquery_object + :gridsize: 0 + + import paramak + my_component = paramak.BlanketFP( + thickness=100, + stop_angle=-80, + start_angle=250, + offset_from_plasma=30, + rotation_angle=180 + ) + + cadquery_object = my_component.solid + |BlanketFPstp| |BlanketFPsvg| .. |BlanketFPstp| image:: https://user-images.githubusercontent.com/8583900/87254778-fe520b80-c47c-11ea-845f-470991d74874.png @@ -97,6 +140,20 @@ BlanketFP() BlanketFPPoloidalSegments() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. cadquery:: + :select: cadquery_object + :gridsize: 0 + + import paramak + my_component = paramak.PoloidalSegments( + number_of_segments=10, + center_point=(500, 50), + rotation_angle=180 + ) + + cadquery_object = my_component.solid + + |BlanketFPPoloidalSegmentsstp| |BlanketFPPoloidalSegmentssvg| .. |BlanketFPPoloidalSegmentsstp| image:: https://user-images.githubusercontent.com/8583900/98735027-af6ca200-239a-11eb-9a59-4a570f91a1fc.png @@ -112,6 +169,20 @@ BlanketFPPoloidalSegments() CenterColumnShieldCylinder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. cadquery:: + :select: cadquery_object + :gridsize: 0 + + import paramak + my_component = paramak.CenterColumnShieldCylinder( + inner_radius=80, + outer_radius=100, + height=300, + rotation_angle=90, + ) + + cadquery_object = my_component.solid + |CenterColumnShieldCylinderstp| |CenterColumnShieldCylindersvg| .. |CenterColumnShieldCylinderstp| image:: https://user-images.githubusercontent.com/56687624/86241438-caccd280-bb9a-11ea-9548-b199759a6dbc.png @@ -126,6 +197,21 @@ CenterColumnShieldCylinder() CenterColumnShieldHyperbola() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. cadquery:: + :select: cadquery_object + :gridsize: 0 + + import paramak + my_component = paramak.CenterColumnShieldHyperbola( + inner_radius=50, + mid_radius=75, + outer_radius=100, + height=300, + rotation_angle=90 + ) + + cadquery_object = my_component.solid + |CenterColumnShieldHyperbolastp| |CenterColumnShieldHyperbolasvg| .. |CenterColumnShieldHyperbolastp| image:: https://user-images.githubusercontent.com/56687624/86241456-d0c2b380-bb9a-11ea-9728-88fe4081345f.png @@ -140,6 +226,22 @@ CenterColumnShieldHyperbola() CenterColumnShieldFlatTopHyperbola() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. cadquery:: + :select: cadquery_object + :gridsize: 0 + + import paramak + my_component = paramak.CenterColumnShieldFlatTopHyperbola( + inner_radius=50, + mid_radius=75, + outer_radius=100, + arc_height=220, + height=300, + rotation_angle=90 + ) + + cadquery_object = my_component.solid + |CenterColumnShieldFlatTopHyperbolastp| |CenterColumnShieldFlatTopHyperbolasvg| .. |CenterColumnShieldFlatTopHyperbolastp| image:: https://user-images.githubusercontent.com/56687624/86241446-cdc7c300-bb9a-11ea-8310-d54397338da8.png @@ -154,6 +256,22 @@ CenterColumnShieldFlatTopHyperbola() CenterColumnShieldFlatTopCircular() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. cadquery:: + :select: cadquery_object + :gridsize: 0 + + import paramak + my_component = paramak.CenterColumnShieldFlatTopCircular( + inner_radius=50, + mid_radius=75, + outer_radius=100, + arc_height=220, + height=300, + rotation_angle=90 + ) + + cadquery_object = my_component.solid + |CenterColumnShieldFlatTopCircularstp| |CenterColumnShieldFlatTopCircularsvg| .. |CenterColumnShieldFlatTopCircularstp| image:: https://user-images.githubusercontent.com/56687624/86241446-cdc7c300-bb9a-11ea-8310-d54397338da8.png @@ -168,6 +286,21 @@ CenterColumnShieldFlatTopCircular() CenterColumnShieldPlasmaHyperbola() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. cadquery:: + :select: cadquery_object + :gridsize: 0 + + import paramak + my_component = paramak.CenterColumnShieldPlasmaHyperbola( + inner_radius=150, + mid_offset=50, + edge_offset=40, + height=800, + rotation_angle=90 + ) + + cadquery_object = my_component.solid + .. image:: https://user-images.githubusercontent.com/56687624/86241464-d3bda400-bb9a-11ea-83b4-a3ff0bf630c4.png :width: 180px :align: center @@ -179,6 +312,22 @@ CenterColumnShieldPlasmaHyperbola() CoolantChannelRingStraight() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. cadquery:: + :select: cadquery_object + :gridsize: 0 + + import paramak + my_component = paramak.CoolantChannelRingStraight( + height=200, + channel_radius=10, + ring_radius=70, + number_of_coolant_channels=8, + workplane="XY", + rotation_axis="Z", + ) + + cadquery_object = my_component.solid + |CoolantChannelRingStraightallstp| |CoolantChannelRingStraightsvg| |CoolantChannelRingStraightstp| .. |CoolantChannelRingStraightallstp| image:: https://user-images.githubusercontent.com/56687624/99049969-6467b000-258f-11eb-93b2-73e533b366c0.png