This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Script to perform a Kinetic Problem | |
* | |
* Author: M. Hoffer, A. Vogel | |
*/ | |
import eu.mihosoft.vrl.annotation.*; | |
import eu.mihosoft.vrl.types.*; | |
import edu.gcsc.vrl.ug.api.I_ApproximationSpace; | |
import edu.gcsc.vrl.ug.api.I_UserNumber; | |
import edu.gcsc.vrl.ug.api.F_Integral; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import edu.gcsc.vrl.ug.api.*; | |
import eu.mihosoft.vrl.annotation.*; | |
import eu.mihosoft.vrl.math.Trajectory; | |
import eu.mihosoft.vrl.types.CanvasRequest; | |
import java.io.File; | |
import java.io.FileFilter; | |
/** | |
* Script to perform a Kinetic Problem. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Script to perform an Advection-Diffusion Problem | |
* | |
* Author: M. Hoffer, A. Vogel | |
*/ | |
import edu.gcsc.vrl.ug.api.I_ApproximationSpace; | |
import edu.gcsc.vrl.ug.api.I_UserNumber; | |
import edu.gcsc.vrl.ug.api.I_UserVector; | |
import edu.gcsc.vrl.ug.api.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Script to perform an Advection-Diffusion Problem | |
* | |
* Author: M. Hoffer, A. Vogel | |
*/ | |
import eu.mihosoft.vrl.annotation.*; | |
import edu.gcsc.vrl.ug.api.F_GlobalDomainRefiner; | |
import edu.gcsc.vrl.ug.api.I_IRefiner; | |
import edu.gcsc.vrl.ug.api.I_Domain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package eu.mihosoft.vrl.user; | |
import static eu.mihosoft.vvecmath.Transform.unity; | |
import eu.mihosoft.vvecmath.Vector3d as Vec3d; | |
import eu.mihosoft.vcsg.CSG; | |
/** | |
* @author Michael Hoffer <info@michaelhoffer.de> | |
*/ | |
@ComponentInfo(name="CopyCSG", category="Custom", description="Aligns copies of csg objects in a grid") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package eu.mihosoft.vrl.user; | |
/** | |
* A simple 2df geometry & data plotter for VRL-Studio. | |
* | |
* @author Michael Hoffer <info@michaelhoffer.de> | |
*/ | |
@ComponentInfo(name="File2DPlotter", category="Custom") | |
class File2DPlotter implements Serializable, GlobalBackgroundPainter { | |
private static final long serialVersionUID=1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package eu.mihosoft.vrl.user; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.stream.Collectors; | |
/** | |
* A simple 2d file reader for VRL-Studio. | |
* | |
* # File format: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Unescapes a string that contains standard Java escape sequences. | |
* <ul> | |
* <li><strong>\b \f \n \r \t \" \'</strong> : | |
* BS, FF, NL, CR, TAB, double and single quote.</li> | |
* <li><strong>\X \XX \XXX</strong> : Octal character | |
* specification (0 - 377, 0x00 - 0xFF).</li> | |
* <li><strong>\uXXXX</strong> : Hexadecimal based Unicode character.</li> | |
* </ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package eu.mihosoft.vrl.user; | |
/** | |
* @author Michael Hoffer <info@michaelhoffer.de> | |
*/ | |
@ComponentInfo(name="MatrixPlotter", category="Custom") | |
class MatrixPlotter implements Serializable, GlobalBackgroundPainter { | |
private static final long serialVersionUID=1; | |
private transient double[][] M; | |
private transient Color minC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package eu.mihosoft.vrl.user; | |
@ComponentInfo(name="TrajectoryToVector", category="Custom") | |
public class VectorTrajectoryToVector implements java.io.Serializable { | |
private static final long serialVersionUID=1L; | |
// add your code here | |
@OutputInfo(name="Vector", options="serialization=false") | |
public double[] convert( | |
@ParamInfo(name="Trajectory", style="default", options="") VectorTrajectory vt, |