JaRMoS  1.1
Java Reduced Model Simulations
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
TestRBVisualization.java
Go to the documentation of this file.
1 
2 package jarmos.pc.test;
3 
8 import jarmos.pc.Main;
11 import rb.RBContainer;
12 import rb.RBSystem;
13 
18 public class TestRBVisualization {
19 
24  public static void main(String[] args) throws ModelManagerException {
25  FileModelManager f = new FileModelManager("models");
26  f.useModel("demo8");
27 
28  RBContainer rb = new RBContainer();
29  rb.loadModel(f);
30 
31  // Perform the solve
32  RBSystem s=rb.mRbSystem;
33  double[] par = s.getParams().getRandomParam();
34  s.getParams().setCurrent(par);
35  s.computeRBSolution(s.getNBF());
36  SimulationResult res = s.getSimulationResults();
37 
38 // s.performSweep(0, 4);
39 // SimulationResult res = s.getSweepSimResults();
40 
41  GeometryData g = rb.mRbSystem.getGeometry();
42  VisualizationData v = new VisualizationData(g);
43 
44  v.useResult(res);
45  v.computeVisualFeatures(new ColorGenerator());
46 
47  Main m = new Main();
48  m.visualize(v);
49  }
50 
51 }
This class provides the Online stage for the reduced basis method for elliptic steady state problems...
Definition: RBSystem.java:54
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.
Main program for desktop-based reduced model simulation using Java.
Definition: Main.java:35
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...