RenderableFieldlinesSequence

Inherits Renderable

Members

Name

Documentation

Type

Description

Optional

InputFileType

Input file type. Should be cdf, json or osfls

String

In list { Cdf, Json, Osfls }

No

SourceFolder

Path to folder containing the input files

Directory

Value of type ‘Directory’

No

Color

The uniform color of lines shown when ‘Color Method’ is set to ‘Uniform’.

Color4

Value of type ‘Color4’

Yes

ColorMethod

Color lines uniformly or using color tables based on extra quantities like, for examples, temperature or particle density.

String

Value of type ‘String’

Yes

ColorQuantity

Quantity used to color lines if the ‘By Quantity’ color method is selected.

Integer

Value of type ‘Integer’

Yes

ColorTablePaths

A list of paths to transferfunction .txt files containing color tables used for colorizing the fieldlines according to different parameters

Table

Table parameters

Yes

ColorTableRanges

List of ranges for which their corresponding parameters values will be colorized by. Should be entered as {min value, max value} per range

Table

Table parameters

Yes

ExtraVariables

Extra variables such as rho, p or t

Table

Table parameters

Yes

FlowColor

Color of particles flow direction indication.

Color4

Value of type ‘Color4’

Yes

FlowEnabled

Enables flow, showing the direction, but not accurate speed, that particles would be traveling

Boolean

Value of type ‘Boolean’

Yes

FlowSpeed

Speed of the flow.

Integer

Value of type ‘Integer’

Yes

LineWidth

This value specifies the line width of the fieldlines.

Double

Value of type ‘Double’

Yes

LoadAtRuntime

Set to true if you are streaming data during runtime

Boolean

Value of type ‘Boolean’

Yes

ManualTimeOffset

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.

Double

Value of type ‘Double’

Yes

MaskingEnabled

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.

Boolean

Value of type ‘Boolean’

Yes

MaskingQuantity

Quantity used for masking.

Integer

Value of type ‘Integer’

Yes

MaskingRanges

List of ranges for which their corresponding parameters values will be masked by. Should be entered as {min value, max value} per range

Table

Table parameters

Yes

OutputFolder

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)

String

Value of type ‘String’

Yes

ParticleSize

Size of the particles.

Integer

Value of type ‘Integer’

Yes

ParticleSpacing

Spacing inbetween particles.

Integer

Value of type ‘Integer’

Yes

ReversedFlow

Toggle to make the flow move in the opposite direction.

Boolean

Value of type ‘Boolean’

Yes

ScaleToMeters

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.

Double

Value of type ‘Double’

Yes

SeedPointDirectory

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

Directory

Value of type ‘Directory’

Yes

SimulationModel

Currently supports: batsrus, enlil & pfss

String

Value of type ‘String’

Yes

TracingVariable

Which variable in CDF file to trace. b is default for fieldline

String

Value of type ‘String’

Yes

Inherited members from Renderable

Name

Documentation

Type

Description

Optional

DimInAtmosphere

Decides if the object should be dimmed (i.e. faded out) when the camera is in the sunny part of an atmosphere.

Boolean

Value of type ‘Boolean’

Yes

Enabled

Determines whether this object will be visible or not.

Boolean

Value of type ‘Boolean’

Yes

Opacity

This value determines the opacity of this renderable. A value of 0 means completely transparent

Double

In range: ( 0,1 )

Yes

RenderBinMode

A value that specifies if the renderable should be rendered in the Background, Opaque, Pre-/PostDeferredTransparency, Overlay, or Sticker rendering step.

String

In list { Background, Opaque, PreDeferredTransparent, PostDeferredTransparent, Overlay }

Yes

Tag

A single tag or a list of tags that this renderable will respond to when setting properties

Table, or String

Value of type ‘Table’, or Value of type ‘String’

Yes

Type

The type of the renderable.

String

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

*

File

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

*

Vector2<double>

Value of type ‘Vector2

Yes

Table parameters for ExtraVariables

Extra variables such as rho, p or t

  • Optional: Yes

Name

Documentation

Type

Description

Optional

*

String

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

*

Vector2<double>

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}