RenderableFieldlinesSequence
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
Input file type. Should be cdf, json or osfls |
|
In list { Cdf, Json, Osfls } |
No |
|
Path to folder containing the input files |
|
Value of type ‘Directory’ |
No |
|
The uniform color of lines shown when ‘Color Method’ is set to ‘Uniform’. |
|
Value of type ‘Color4’ |
Yes |
|
Color lines uniformly or using color tables based on extra quantities like, for examples, temperature or particle density. |
|
Value of type ‘String’ |
Yes |
|
Quantity used to color lines if the ‘By Quantity’ color method is selected. |
|
Value of type ‘Integer’ |
Yes |
|
A list of paths to transferfunction .txt files containing color tables used for colorizing the fieldlines according to different parameters |
|
Yes |
|
|
List of ranges for which their corresponding parameters values will be colorized by. Should be entered as {min value, max value} per range |
|
Yes |
|
|
Extra variables such as rho, p or t |
|
Yes |
|
|
Color of particles flow direction indication. |
|
Value of type ‘Color4’ |
Yes |
|
Enables flow, showing the direction, but not accurate speed, that particles would be traveling |
|
Value of type ‘Boolean’ |
Yes |
|
Speed of the flow. |
|
Value of type ‘Integer’ |
Yes |
|
This value specifies the line width of the fieldlines. |
|
Value of type ‘Double’ |
Yes |
|
Set to true if you are streaming data during runtime |
|
Value of type ‘Boolean’ |
Yes |
|
If data sets parameter start_time differ from start of run, elapsed_time_in_seconds might be in relation to start of run. ManuelTimeOffset will be added to trigger time. |
|
Value of type ‘Double’ |
Yes |
|
Enable/disable masking. Use masking to show lines where a given quantity is within a given range, for example, if you only want to see where the temperature is between 10 and 20 degrees. Also used for masking out line topologies like solar wind & closed lines. |
|
Value of type ‘Boolean’ |
Yes |
|
Quantity used for masking. |
|
Value of type ‘Integer’ |
Yes |
|
List of ranges for which their corresponding parameters values will be masked by. Should be entered as {min value, max value} per range |
|
Yes |
|
|
Value should be path to folder where states are saved. Specifying this makes it use file type converter (JSON/CDF input => osfls output & oslfs input => JSON output) |
|
Value of type ‘String’ |
Yes |
|
Size of the particles. |
|
Value of type ‘Integer’ |
Yes |
|
Spacing inbetween particles. |
|
Value of type ‘Integer’ |
Yes |
|
Toggle to make the flow move in the opposite direction. |
|
Value of type ‘Boolean’ |
Yes |
|
Convert the models distance unit, ex. AU for Enlil, to meters. Can be used during runtime to scale domain limits. 1.f is default, assuming meters as input. |
|
Value of type ‘Double’ |
Yes |
|
Path to a .txt file containing seed points. Mandatory if CDF as input. Files need time stamp in file name like so: yyyymmdd_hhmmss.txt |
|
Value of type ‘Directory’ |
Yes |
|
Currently supports: batsrus, enlil & pfss |
|
Value of type ‘String’ |
Yes |
|
Which variable in CDF file to trace. b is default for fieldline |
|
Value of type ‘String’ |
Yes |
Inherited members from Renderable
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
Decides if the object should be dimmed (i.e. faded out) when the camera is in the sunny part of an atmosphere. |
|
Value of type ‘Boolean’ |
Yes |
|
Determines whether this object will be visible or not. |
|
Value of type ‘Boolean’ |
Yes |
|
This value determines the opacity of this renderable. A value of 0 means completely transparent |
|
In range: ( 0,1 ) |
Yes |
|
A value that specifies if the renderable should be rendered in the Background, Opaque, Pre-/PostDeferredTransparency, Overlay, or Sticker rendering step. |
|
In list { Background, Opaque, PreDeferredTransparent, PostDeferredTransparent, Overlay } |
Yes |
|
A single tag or a list of tags that this renderable will respond to when setting properties |
|
Value of type ‘Table’, or Value of type ‘String’ |
Yes |
|
The type of the renderable. |
|
Value of type ‘String’ |
Yes |
Table parameters for ColorTablePaths
A list of paths to transferfunction .txt files containing color tables used for colorizing the fieldlines according to different parameters
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘File’ |
Yes |
Table parameters for ColorTableRanges
List of ranges for which their corresponding parameters values will be colorized by. Should be entered as {min value, max value} per range
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘Vector2 |
Yes |
Table parameters for ExtraVariables
Extra variables such as rho, p or t
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘String’ |
Yes |
Table parameters for MaskingRanges
List of ranges for which their corresponding parameters values will be masked by. Should be entered as {min value, max value} per range
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘Vector2 |
Yes |
Asset Examples
1local transforms = asset.require("./transforms")
2
3
4
5local data = asset.resource({
6 Type = "HttpSynchronization",
7 Name = "Ganymede Plane Simulations",
8 Identifier = "juice_ganymede_fieldlines",
9 Version = 1
10})
11
12
13local GanymedeMagnetosphere = {
14 Identifier = "GanymedeMagnetosphere",
15 Parent = transforms.GPHIO.Identifier,
16 Renderable = {
17 Type = "RenderableFieldlinesSequence",
18 SourceFolder = data,
19 LineWidth = 3.0,
20 InputFileType = "Json",
21 ColorMethod = "By Quantity",
22 ColorQuantity = 0,
23 ColorTableRanges = { { 62.556353386366766, 1665.5534182835445 } },
24 ColorTablePaths = { asset.resource("CMR-illuminance2.txt") },
25 Color = { 0.03, 0.0, 0.0, 1.0 },
26 ParticleSpacing = 42.0,
27 ParticleSize = 30.0,
28 FlowColor = { 1.0, 1.0, 1.0, 0.1 },
29 DomainEnabled = false
30
31 },
32 GUI = {
33 Name = "Ganymede Magnetosphere",
34 Path = "/Solar System/Missions/Juice/Fieldlines",
35 Description = "Fieldlines showing a simulation of the magnetic fields around Ganymede"
36 }
37}
38
39
40asset.onInitialize(function()
41 openspace.addSceneGraphNode(GanymedeMagnetosphere)
42end)
43
44asset.onDeinitialize(function()
45 openspace.removeSceneGraphNode(GanymedeMagnetosphere)
46end)
47
48
49
50asset.meta = {
51 Name = "Static fieldline representation of Ganymede's magnetic field",
52 Description = [[
53 Showing a single timestep of the magnetic fieldlines around Ganymede in the GPHIO
54 coordinate system
55 ]],
56 Author = "OpenSpace Team",
57 URL = "http://openspaceproject.com",
58 License = "MIT license"
59}