1,120 → 1,66 |
$fn=40; // model faces resolution. |
include <../configuration.scad> |
|
use <zavity.scad> |
include <WINDGAUGE02A_D02.scad> |
include <polyScrewThread_r1.scad> |
|
module WINDGAUGE02A_S03(S01_sila_materialu,S01_vyska_komponentu_na_lozisko,S01_prumer_zavitu,lozisko_vyska,lozisko_prumer_vnejsi,lozisko_prumer_vnitrni,lozisko_prekryv,vyska_matky,prumer_orechu,prumer_sroubu) |
PI=3.141592; |
|
|
|
module WINDGAUGE02A_D01(S01_vyska_komponentu_na_lozisko,S01_prumer_zavitu,D01_material_pod_zavitem,D01_material_za_zavitem,D01_material_pred_zavitem,D01_delka_tyce,D01_sirka_tyce,D02_sila_materialu,D02_vyska_uchytky,D02_prumer_obruby,D02_delka_celeho_uchytu,D02_dotahova_vzdalenost,D02_prumer_uchytneho_sroubu) |
{ |
|
difference() |
{ |
//translate([0,0,-(S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko)/2-10]) |
|
metric_thread (diameter=S01_prumer_zavitu-0.3, pitch=1, length=S01_vyska_komponentu_na_lozisko, internal=false, n_starts=6); |
|
//otvory na ložisko |
translate([0,0,lozisko_vyska/2]) |
cylinder (h = lozisko_vyska+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, center = true, $fn=100); |
|
translate([0,0,S01_vyska_komponentu_na_lozisko/2]) |
cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv+0.2)/2, center = true, $fn=100); |
union() |
{ |
//zavit |
translate([0,0,D01_material_pod_zavitem]) |
screw_thread(S01_prumer_zavitu-0.5,4,55,S01_vyska_komponentu_na_lozisko,PI/2,2); |
|
//spodní valec |
translate([0,0,D01_material_pod_zavitem/2]) |
cylinder (h = D01_material_pod_zavitem, r=(S01_prumer_zavitu+D01_material_pred_zavitem*2)/2, center = true, $fn=100); |
|
//otvor na šroub 1 |
translate([-20,0,vyska_hlavy_sroubu/2]) |
cylinder (h = vyska_hlavy_sroubu+0.01, r=(prumer_hlavy_sroubu+0.2)/2, center = true, $fn=100); |
|
translate([-20,0,S01_vyska_komponentu_na_lozisko/2]) |
cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100); |
|
//otvor na šroub 2 |
translate([20,0,vyska_hlavy_sroubu/2]) |
cylinder (h = vyska_hlavy_sroubu+0.01, r=(prumer_hlavy_sroubu+0.2)/2, center = true, $fn=100); |
|
translate([20,0,S01_vyska_komponentu_na_lozisko/2]) |
cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100); |
|
} |
} |
|
|
|
module stator3(stator3_vyska,prumer_rotoru1,lozisko_vyska,sila_pod_loziskem,sila_materialu,vule1,stator3_sila_steny, |
stator3_vyska_prekryti,prumer_hlavy_sroubu,stator3_vzdalenost_od_steny,lozisko_vyska,prumer_sroubu,roztec_sroubu,uchyt_prumer_sroubu,vyska_stator4,kabel_prumer) |
{ |
difference() |
//uchyt na tyc |
translate([0,D01_delka_tyce/2+S01_prumer_zavitu/2+D01_material_pred_zavitem,D01_material_pod_zavitem/2]) |
cube([D01_sirka_tyce,D01_delka_tyce,D01_material_pod_zavitem],center=true); |
//uchyt na tyc ovalna cast |
translate([0,S01_prumer_zavitu/2+D01_material_pred_zavitem,D01_material_pod_zavitem/2]) |
cube([D01_sirka_tyce,D01_material_za_zavitem+D01_material_pred_zavitem,D01_material_pod_zavitem],center=true); |
|
|
//material kolem uchytu na sloupek |
translate([0,D01_delka_tyce+S01_prumer_zavitu/2+D01_material_pred_zavitem+(D02_sila_materialu+D02_prumer_obruby/2)/2-D02_dotahova_vzdalenost,D01_material_pod_zavitem/2]) |
difference() |
{ |
cylinder (h = stator3_vyska, r=(prumer_rotoru1)/2, center = true, $fn=100); |
|
translate([0,0,(stator3_vyska-lozisko_vyska-sila_pod_loziskem)/2]) |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=(prumer_rotoru1-2*sila_materialu-2*vule1-stator3_sila_steny)/2, center = true, $fn=100); |
cube([D01_sirka_tyce,D02_sila_materialu+D02_prumer_obruby/2,D01_material_pod_zavitem],center=true); |
translate([0,D02_prumer_obruby/2-D02_dotahova_vzdalenost-D02_sila_materialu,0]) |
cylinder(h=D02_vyska_uchytky+0.01,r=D02_prumer_obruby/2,center=true); |
|
} |
|
|
cylinder (h = stator3_vyska+0.1, r=(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-1)/2, center = true, $fn=100); |
|
|
translate([0,0,(stator3_vyska-stator3_vyska_prekryti)/2]) |
difference() |
{ |
|
cylinder (h = stator3_vyska_prekryti+0.1, r=(prumer_rotoru1+0.1)/2, center = true, $fn=100); |
|
cylinder (h = stator3_vyska_prekryti+0.1, r=(prumer_rotoru1-2*sila_materialu-2*vule1)/2, center = true, $fn=100); |
|
} |
|
//otvory pro uchyceni stator 3 |
//otvor pro sroub 1 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
|
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2]) |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
//uchyt na sloupek |
|
translate([0,D01_delka_tyce+S01_prumer_zavitu/2+D01_material_pred_zavitem+D02_sila_materialu+(D02_prumer_obruby)/2,D02_vyska_uchytky/2]) |
rotate(a=[0,0,270]) |
WINDGAUGE02A_D02(D02_sila_materialu,D02_vyska_uchytky,D02_prumer_obruby,D02_delka_celeho_uchytu,D02_dotahova_vzdalenost,D02_prumer_uchytneho_sroubu); |
|
//otvor pro sroub 2 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
} |
|
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2]) |
cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100); |
} |
//otvor |
translate([0,0,(D01_material_pod_zavitem+S01_vyska_komponentu_na_lozisko)/2]) |
cylinder (h = D01_material_pod_zavitem+S01_vyska_komponentu_na_lozisko+0.02, r=(S01_prumer_zavitu-2*D01_material_za_zavitem)/2, center = true, $fn=100); |
|
} |
} |
|
WINDGAUGE02A_D01(S01_vyska_komponentu_na_lozisko,S01_prumer_zavitu,D01_material_pod_zavitem,D01_material_za_zavitem,D01_material_pred_zavitem,D01_delka_tyce,D01_sirka_tyce,D02_sila_materialu,D02_vyska_uchytky,D02_prumer_obruby,D02_delka_celeho_uchytu,D02_dotahova_vzdalenost,D02_prumer_uchytneho_sroubu); |
|
//dno stator3 |
|
translate([0,0,-(stator3_vyska-stator3_sila_steny)/2]) |
difference() |
{ |
cylinder (h = stator3_sila_steny, r=(prumer_rotoru1)/2, center = true, $fn=100); |
|
//otvory pro uchyceni stator 3 |
//otvor pro sroub 1 |
translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
cylinder (h = stator3_sila_steny+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
|
|
|
//otvor pro sroub 2 |
translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0]) |
cylinder (h = stator3_sila_steny+0.1, r=prumer_sroubu/2, center = true, $fn=100); |
|
//srouby pro uchycení anemometru |
translate([roztec_sroubu/2,roztec_sroubu/2,0]) |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
|
translate([-roztec_sroubu/2,roztec_sroubu/2,0]) |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
|
translate([roztec_sroubu/2,-roztec_sroubu/2,0]) |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
|
translate([-roztec_sroubu/2,-roztec_sroubu/2,0]) |
cylinder (h = stator3_sila_steny+0.1, r=uchyt_prumer_sroubu/2, center = true, $fn=100); |
|
//dira na kabel |
cylinder (h = vyska_stator4+0.1, r=(kabel_prumer/2+0.1), center = true, $fn=100); |
} |
} |
|
|
|
WINDGAUGE02A_S03(S01_sila_materialu,S01_vyska_komponentu_na_lozisko,S01_prumer_zavitu,lozisko_vyska,lozisko_prumer_vnejsi,lozisko_prumer_vnitrni,lozisko_prekryv,vyska_matky,prumer_orechu,prumer_sroubu); |
|