{
"rear_axle":{
	"information":{
			"authors":"TonyCartony",
			"name":"Fixed Rear Axle",
	},
		"slotType":"rear_axle",
		
		"flexbodies": [
			["mesh", "[group]:", "nonFlexMaterials"],
			["axle_back", ["wheel_R"]],
			["brake_disk_back", ["wheel_R"]],
			["gear", ["wheel_R"]],			
			["rim_back", ["wheel_R"]],						
			["rim_back_rays", ["wheel_R"]],									
			["tire_back", ["tire_R", "wheel_R"]],						
		],
		
		"variables": [
			["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
			["$tire_R_PSI", "range", "psi", "Tires", 28, 1, 150, "Rear Tire Pressure", "Rear tire pressure"{"stepDis":1.0}]
			["$tire_R_grip", "range", "grip", "Tires", 5, 0, 50, "Rear Tire Compound", "Represents tire type, higher is softer/more grip"{"stepDis":0.5}]
			["$braketorque_R", "range", "Nm", "Brakes", 700, 0, 4000, "Rear Brake Torque", "Strength of the front brakes"{"stepDis":100}]
		],
		
		
	"pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        {"disableMeshBreaking":false,"disableHubMeshBreaking":false},
        {"hasTire":true},
        {"enableTireReinfBeams":false},
        {"enableTireLbeams":true},
        {"enableTireSideReinfBeams":false},
        {"enableTreadReinfBeams":true},
        {"enableTirePeripheryReinfBeams":true},

		
		//measures
		{"hubRadius":0.25},
		{"wheelOffset":0.0},
		{"hubWidth":0.20},
		{"numRays":16},
		{"radius":0.350},
		{"tireWidth":0.15},
		
	
		//brake settings
		{"ABSthreshold":1.8}
		{"brakeTorque":"$braketorque_R"},
		{"enableABS":false},
		{"brakeInputSplit":0.5},
		{"brakeSplitCoef":0.5},
		{"parkingTorque":1000},
		{"brakeSpring":30},
		
		//brake thermals
		{"enableBrakeThermals":true},
		{"brakeDiameter":0.305},
		{"brakeMass":6.5},
		{"brakeType":"vented-disc"},
		{"rotorMaterial":"steel"},
		{"brakeVentingCoef":0.9},	
		
		
		
		
		
		
		
		

        //hub options
        {"hubTreadBeamSpring":1001000, "hubTreadBeamDamp":10},
        {"hubPeripheryBeamSpring":1001000, "hubPeripheryBeamDamp":10},
        {"hubSideBeamSpring":1601000, "hubSideBeamDamp":10},
        {"hubNodeWeight":0.48},
        {"hubNodeMaterial":"|NM_METAL"},
        {"hubFrictionCoef":0.5},
        {"hubBeamDeform":43600, "hubBeamStrength":78000},		
		
		

        //tire options
        {"wheelSideBeamSpring":"$=$tire_R_PSI*833","wheelSideBeamDamp":25},
        {"wheelSideBeamSpringExpansion":561000,"wheelSideBeamDampExpansion":55},
        {"wheelSideTransitionZone":0.12,"wheelSideBeamPrecompression":0.985},

        {"wheelReinfBeamSpring":55000,"wheelReinfBeamDamp":215},
        {"wheelReinfBeamDampCutoffHz":500,"wheelReinfBeamPrecompression":0.98},

        {"wheelTreadBeamSpring":241000,"wheelTreadBeamDamp":115},
        {"wheelTreadBeamDampCutoffHz":500,"wheelTreadBeamPrecompression":0.98},

        {"wheelTreadReinfBeamSpring":241000,"wheelTreadReinfBeamDamp":85},
        {"wheelTreadReinfBeamDampCutoffHz":500,"wheelTreadReinfBeamPrecompression":0.98},

        {"wheelPeripheryBeamSpring":141000,"wheelPeripheryBeamDamp":45},
        {"wheelPeripheryBeamDampCutoffHz":500,"wheelPeripheryBeamPrecompression":0.98},

        {"wheelPeripheryReinfBeamSpring":141000,"wheelPeripheryReinfBeamDamp":45},
        {"wheelPeripheryReinfBeamDampCutoffHz":500,"wheelPeripheryReinfBeamPrecompression":0.98},

        //general tire values
        {"nodeWeight":0.21},
        {"nodeMaterial":"|NM_RUBBER"},
        {"triangleCollision":false},
        {"pressurePSI":"$tire_R_PSI"},
        {"dragCoef":5},

        //groundmodel friction multipliers
        {"frictionCoef":"$tire_R_grip"},
        {"slidingFrictionCoef":1.0},
        {"stribeckExponent":2},
        {"treadCoef":0},

        //advanced friction values
        {"noLoadCoef":2.09},
        {"loadSensitivitySlope":0.000185},
        {"fullLoadCoef":0.5},
        {"softnessCoef":0.8},

        //deform values
        {"wheelSideBeamDeform":17000,"wheelSideBeamStrength":32000},
        {"wheelTreadBeamDeform":13000,"wheelTreadBeamStrength":37000},
        {"wheelPeripheryBeamDeform":55000,"wheelPeripheryBeamStrength":55000},

        {"selfCollision":false},
        {"collision":true},
        {"axleBeams":["axle_FR"]},
        //["RR", "wheel_FR", "tire_FR", "fw1rr", "fw1r", 9999, "fw2r", 1, {"torqueCoupling:":"fh1r", "torqueArm:":"fh2r", "torqueArm2:":"fw1rr", "steerAxisUp:":"fh2r","steerAxisDown:":"fh1r"}],
		["RR", "wheel_R", "tire_R", "rax_axl_r", "rax_axl_l", 9999,  "back", 1, {"speedo":true, "nodeCoupling:":"rax_brakecen"}],		

		//clean-up
        {"axleBeams":[]},{"disableMeshBreaking":false,"disableTriangleBreaking":false},
        {"selfCollision":true},
        {"enableABS":false},
        {"hubcapBreakGroup":""},
        {"hubcapGroup":""},
        {"enableHubcaps":false},
        {"enableTireLbeams":false},
        {"enableTireSideReinfBeams":false},
        {"enableTireReinfBeams":false},
        {"enableTreadReinfBeams":false},
        {"enableTirePeripheryReinfBeams":false},
        {"loadSensitivitySlope":""},
        {"noLoadCoef":""},
        {"fullLoadCoef":""},
        {"frictionCoef":""},
        {"slidingFrictionCoef":""},
        {"softnessCoef":0.5},
        {"treadCoef":1.0},
		{"brakeTorque":0},
		{"parkingTorque":0},
		{"enableBrakeThermals":false},
		{"brakeDiameter":false},
		{"brakeMass":false},
		{"brakeType":false},
		{"rotorMaterial":false},
		{"brakeVentingCoef":false},		
    ],		

	
	//--Nodes--
		"nodes":[
			["id", "posX", "posY", "posZ"],
			{"selfCollision":false}
			{"collision":true}
			{"nodeWeight":5.0},
			{"nodeMaterial":"|NM_METAL"},
			{"chemEnergy":200,"burnRate":0.5,"flashPoint":300,"smokePoint":200,"selfIgnition":0,"specHeat":1},
			{"frictionCoef":0.5},
			{"group":"rear_axle"},
			["rax_axl_l", 0.17000, 0.93200, 0.39500],
			["rax_axl_r", -0.17000, 0.93200, 0.39500],
			{"chemEnergy":false,"burnRate":false,"flashPoint":false,"smokePoint":false,"selfIgnition":false,"specHeat":false},
			{"group":""},
		],
	//--Beams--
		"beams":[
			["id1:", "id2:"],
			{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},

			//connection to frame
			{"beamSpring":1700000,"beamDamp":20},
			{"beamDeform":100000,"beamStrength":"$=80000*$attachStrength"}, 
			{"breakGroup":"rear_axle_holder"},
			["rax_axl_l","frm_l24"],		
			["rax_axl_l","frm_l26"],		
			["rax_axl_l","frm_l18"],		
			["rax_axl_l","frm_l22"],		
			["rax_axl_l","frm_r19"],		
			["rax_axl_l","frm_r23"],		
			["rax_axl_l","frm_r27"],		
			["rax_axl_l","frm_r25"],		

			["rax_axl_r","frm_l24"],		
			["rax_axl_r","frm_l26"],		
			["rax_axl_r","frm_l18"],		
			["rax_axl_r","frm_l22"],		
			["rax_axl_r","frm_r19"],		
			["rax_axl_r","frm_r23"],		
			["rax_axl_r","frm_r27"],		
			["rax_axl_r","frm_r25"],		


			
			//structure
			{"beamSpring":2501000,"beamDamp":25},
			{"beamDeform":200000,"beamStrength":"$=500000*$attachStrength"},
			{"breakGroup":"rear_axle"},
			["rax_axl_l","rax_axl_r",{"name":"axle_R"}],
			{"breakGroup":""},			

		],
		//--Collision Triangles--
			"triangles":[
			["id1:", "id2:", "id3:"],
		],
	},
}