과도 경계 조건

다음 예에서는 램프 단계 과도 상태가 작성됩니다. 변수 이름은 사용자 인터페이스에서 사용되는 것과 같으므로 모든 시간 변형 방법을 쉽게 정의할 수 있습니다.

bc = new BoundaryCondition("온도");

bc.units = "Fahrenheit";

tc = new TimeCurve("램프 단계");

tc.setValue("T1", 10);

tc.setValue("T2", 20);

tc.setValue("T3", 30);

tc.setValue("T4", 40);

tc.setValue("F1", 1000);

tc.setValue("F2", 800);

bc.setTimeCurve(tc);

a.select(9);

a.applyBoundaryCondition(bc);

한줄씩 설명이 제공됩니다.

“bc”라는 boundarycondition 객체가 작성되고, Fahrenheit 단위의 온도 조건으로 정의됩니다.

bc = new BoundaryCondition("온도");

bc.units = "Fahrenheit";

램프 단계 유형에 대해 “tc”라는 timecurve 객체가 작성됩니다. 다음 줄에서는 램프 단계의 매개변수가 정의됩니다.

tc = new TimeCurve("램프 단계");

tc.setValue("T1", 10);

tc.setValue("T2", 20);

tc.setValue("T3", 30);

tc.setValue("T4", 40);

tc.setValue("F1", 1000);

tc.setValue("F2", 800);

boundarycondition 객체 bc가 timecurve 객체 tc를 사용하는 것으로 정의됩니다.

bc.setTimeCurve(tc);

표면 9가 선택되고 경계 조건이 적용됩니다.

a.select(9);

a.applyBoundaryCondition(bc);