/* * test.java */ import com.comsol.model.*; import com.comsol.model.util.*; import java.io.*; import java.util.*; /** Model exported on Aug 14 2014, 23:58 by COMSOL 4.3.2.189. */ public class add_inlets { public static void main(String[] args) { run(); } public static Model run() { Model model; try { model=ModelUtil.load("Model","/data/fopiroot/fopiroot_dev/padresponse_COMSOL/test2.mph"); } catch(IOException e) { model=ModelUtil.create("Model"); return model; } double timesigma=1.24e-9; int ntimesteps=10; double timestep=timesigma*4/ntimesteps; int maxnElec=1000; int irel=0; String inlet_name; double reltime=0; int nElec=0; for (irel=0;irel