slip μ MuVsSlipLookup MuVsSlipLookup Icon

Examples.MuVsSlipLookup

Usage

PrimitiveComponents.Examples.MuVsSlipLookup()

Parameters:

NameDescriptionUnitsDefault value
datasetDyadData.DyadTimeseries(hcat([0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1], [0, 0.4, 0.8, 0.97, 1, 0.98, 0.96, 0.94, 0.92, 0.9, 0.88, 0.855, 0.83, 0.81, 0.79, 0.77, 0.75, 0.73, 0.72, 0.71, 0.7]), dependentvars=["mu"], independentvar="slip")

Connectors

  • u - This connector represents a real signal as an input to a component (RealInput)
  • y - This connector represents a real signal as an output from a component (RealOutput)

Behavior

Behavior of this component cannot be rendered because it includes path variables.

Source

component MuVsSlipLookup
  u = Dyad.RealInput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "default", "x1": 200, "y1": 250, "x2": 240, "y2": 290, "rot": 0},
        "diagram": {"iconName": "default", "x1": 0, "y1": 480, "x2": 40, "y2": 520, "rot": 0}
      },
      "tags": []
    }
  }
  y = Dyad.RealOutput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "default", "x1": 600, "y1": 250, "x2": 640, "y2": 290, "rot": 0},
        "diagram": {"iconName": "default", "x1": 960, "y1": 480, "x2": 1000, "y2": 520, "rot": 0}
      },
      "tags": []
    }
  }
  interpolation = BlockComponents.ParameterizedInterpolation(interpolation_type = BlockComponents.InterpolationType.LinearInterpolation(), extrapolation_type = BlockComponents.ExtrapolationType.Constant(), dataset = dataset) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 450, "x2": 550, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  structural dataset::DyadData.DyadTimeseries = DyadData.DyadTimeseries(hcat([0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1.0], [0.0, 0.4, 0.8, 0.97, 1.0, 0.98, 0.96, 0.94, 0.92, 0.9, 0.88, 0.855, 0.83, 0.81, 0.79, 0.77, 0.75, 0.73, 0.72, 0.71, 0.7]), dependent_vars = ["mu"], independent_var = "slip")
relations
  connect(u, interpolation.u) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(interpolation.y, y) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
metadata {
  "Dyad": {
    "icons": {"default": "dyad://PrimitiveComponents/MuVsSlipLookup.svg"},
    "doc": {"behavior": false}
  }
}
end
Flattened Source
component MuVsSlipLookup
  u = Dyad.RealInput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "default", "x1": 200, "y1": 250, "x2": 240, "y2": 290, "rot": 0},
        "diagram": {"iconName": "default", "x1": 0, "y1": 480, "x2": 40, "y2": 520, "rot": 0}
      },
      "tags": []
    }
  }
  y = Dyad.RealOutput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "default", "x1": 600, "y1": 250, "x2": 640, "y2": 290, "rot": 0},
        "diagram": {"iconName": "default", "x1": 960, "y1": 480, "x2": 1000, "y2": 520, "rot": 0}
      },
      "tags": []
    }
  }
  interpolation = BlockComponents.ParameterizedInterpolation(interpolation_type = BlockComponents.InterpolationType.LinearInterpolation(), extrapolation_type = BlockComponents.ExtrapolationType.Constant(), dataset = dataset) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 450, "x2": 550, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  structural dataset::DyadData.DyadTimeseries = DyadData.DyadTimeseries(hcat([0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1.0], [0.0, 0.4, 0.8, 0.97, 1.0, 0.98, 0.96, 0.94, 0.92, 0.9, 0.88, 0.855, 0.83, 0.81, 0.79, 0.77, 0.75, 0.73, 0.72, 0.71, 0.7]), dependent_vars = ["mu"], independent_var = "slip")
relations
  connect(u, interpolation.u) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(interpolation.y, y) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
metadata {
  "Dyad": {
    "icons": {"default": "dyad://PrimitiveComponents/MuVsSlipLookup.svg"},
    "doc": {"behavior": false}
  }
}
end


Test Cases

No test cases defined.

  • Examples
  • Experiments
  • Analyses