3 import static org.junit.Assert.assertTrue;
13 import org.junit.Test;
22 public class TestrbappmitModels {
29 public void testRBSolve_rbappmit_Models() throws ModelManagerException {
30 FileModelManager f =
new FileModelManager(
"models");
31 for (ModelDescriptor md : f.getModelDescriptors()) {
32 if (md.type == ModelType.rbappmit) {
33 f.useModel(md.modeldir);
35 RBContainer rb =
new RBContainer();
36 assertTrue(rb.loadModel(f));
39 RBSystem s = rb.mRbSystem;
40 double[] par = s.getParams().getRandomParam();
41 s.getParams().setCurrent(par);
42 s.computeRBSolution(2);
44 SimulationResult sol = s.getSimulationResults();
46 GeometryData g =
new GeometryData();
47 g.loadModelGeometry(f);
49 VisualizationData d =
new VisualizationData(g);
52 d.computeVisualFeatures(
new ColorGenerator());
This class provides the Online stage for the reduced basis method for elliptic steady state problems...
Represents the results of a simulation.
Manages models loaded from the file system available via the java.io classes.
Base class for RB models and systems.
Known model types within the JaRMoSBase project.
Represents a short description of a model managed by a model manager.
A container class for all model visual data.
This Exception gets thrown when an error occurs regarding the functionality of the ModelManager...
This is a container class for all geometry-related data of a reduced model.
The color generator is used to produce RGBA (RGB+Alpha) values from a given array of floats...