classdef resinparam % RESINPARAM holds thickness measurements and gets curing properties % This should hold a full set of thickness and exposure measurements % and will calculate and hold the curing properties such as the % critical exposure and depth for the resin. Mechanical properties % such as the change in Young's modulus or volumetric strain can also % be calculated and stored. properties tArray % Linear array of exposure times from measurement(s) hArray % Corresponding array of print heights from measurement (m) critD % critical depth (m) critE % critical exposure (J/cm^2) critT % critical time (s) K % Polymerization constant phi_c % Polymerization threshold end methods function obj = calcCrits(obj,flatF) %UNTITLED4 Construct an instance of this class % Detailed explanation goes here doseArray = obj.tArray * flatF; P = polyfit(log(doseArray),obj.hArray,1); % Straight line fit obj.critD = P(1); tcritE = exp(P(2)/-P(1)); tcritT = tcritE / flatF; obj.K = log(1/(1-obj.phi_c))/tcritE; obj.critE = tcritE; obj.critT = tcritT; end end end