Search in sources :

Example 11 with Solver

use of cbit.vcell.solver.server.Solver in project vcell by virtualcell.

the class ClientSimManager method createQuickRunSolver.

public static Solver createQuickRunSolver(File directory, SimulationTask simTask) throws SolverException, IOException {
    SolverDescription solverDescription = simTask.getSimulation().getSolverTaskDescription().getSolverDescription();
    if (solverDescription == null) {
        throw new IllegalArgumentException("SolverDescription cannot be null");
    }
    // ----- 'FiniteVolume, Regular Grid' solver (semi-implicit) solver is not supported for quick run; throw exception.
    if (solverDescription.equals(SolverDescription.FiniteVolume)) {
        throw new IllegalArgumentException("Semi-Implicit Finite Volume Compiled, Regular Grid (Fixed Time Step) solver not allowed for quick run of simulations.");
    }
    SolverUtilities.prepareSolverExecutable(solverDescription);
    // create solver from SolverFactory
    Solver solver = SolverFactory.createSolver(directory, simTask, false);
    return solver;
}
Also used : SmoldynSolver(org.vcell.solver.smoldyn.SmoldynSolver) Solver(cbit.vcell.solver.server.Solver) SolverDescription(cbit.vcell.solver.SolverDescription)

Aggregations

Solver (cbit.vcell.solver.server.Solver)11 SimulationTask (cbit.vcell.messaging.server.SimulationTask)6 File (java.io.File)6 Simulation (cbit.vcell.solver.Simulation)4 SimulationJob (cbit.vcell.solver.SimulationJob)4 TempSimulation (cbit.vcell.solver.TempSimulation)4 SolverStatus (cbit.vcell.solver.server.SolverStatus)4 AbstractCompiledSolver (cbit.vcell.solvers.AbstractCompiledSolver)4 ODEDataBlock (cbit.vcell.simdata.ODEDataBlock)3 SimulationData (cbit.vcell.simdata.SimulationData)3 SolverDescription (cbit.vcell.solver.SolverDescription)3 ODESimData (cbit.vcell.solver.ode.ODESimData)3 GibsonSolver (cbit.vcell.solver.stoch.GibsonSolver)3 ArrayList (java.util.ArrayList)3 BioModel (cbit.vcell.biomodel.BioModel)2 HtcProxy (cbit.vcell.message.server.htc.HtcProxy)2 ExpressionException (cbit.vcell.parser.ExpressionException)2 HtcJobID (cbit.vcell.server.HtcJobID)2 PortableCommand (cbit.vcell.simdata.PortableCommand)2 VtkMeshGenerator (cbit.vcell.simdata.VtkMeshGenerator)2