public CubicAnisotropy(string name, IMifScalarField k1, IMifVectorField axis1, IMifVectorField axis2) : base(name) { K1 = k1; Axis1 = axis1; Axis2 = axis2; }
public Surface(IMifAtlas atlas, string region, IMifScalarField scalarField, double scalarFieldValue, bool scalarSideSign) { Atlas = atlas; Region = region; ScalarField = scalarField; ScalarFieldValue = scalarFieldValue; ScalarSideSign = scalarSideSign; }
private IMifEnergy CreateUniaxialAnisotropy(string[] lines) { string name = helper.GetName(lines[0]); int number = helper.GetIndexOfStringContaining(lines, "K1"); var textK1 = helper.GetCodeToClosingBrace(lines, number, '{'); IMifScalarField k1 = scalarFieldFactory.Create(textK1); number = helper.GetIndexOfStringContaining(lines, "axis"); var textAxis = helper.GetCodeToClosingBrace(lines, number, '{'); IMifVectorField axis = vectorFieldFactory.Create(textAxis); return(new UniaxialAnisotropy(name, k1, axis)); }
public UniaxialAnisotropy(string name, IMifScalarField k1, IMifVectorField axis) : base(name) { K1 = k1; Axis = axis; }