5. Parameters

A parameter carries a named value such as a mass conversion factor, a numerical tolerance or an output setting. Use the alphabetical index to check the exact spelling, type, fixed default and enumerated values. A catalogue default describes the input convention. Whether a setting affects a calculation depends on the analysis and its implementation.

Parameter entry and scope

Purpose. WeightToMass records the conversion factor between weight and mass.

Format. In [model], write Parameter;WeightToMass;value. The field is real and its catalogue default is 1. In [case], use SubcaseParameter;name;value to record a case-control parameter. A record after a subcase header belongs to that subcase.

Example. The rod model explicitly supplies Parameter;WeightToMass;1.0. Its stored value is numerically equal to the default. WeightToMass entry

Remarks. paramsTable distinguishes explicit records from supplied catalogue defaults with isDefault. The subcase column distinguishes a model parameter (null), global case control (0), and numbered subcases.

Inspect an explicit value

After reading tie.oos as in Command line, run either snippet while the deck is live. Both report one row for the explicit WeightToMass record. With withDefaults enabled, the query also returns fixed defaults for requested names absent from the model.

JavaScript / WebAssembly

const table = reader.runQuery("paramsTable", {
  deck, args: { names: ["WeightToMass"], withDefaults: false }
});
try {
  console.log(table.rowCount()); // 1
} finally {
  table.delete();
}

Python / native C++

table = deck.query("paramsTable", names=["WeightToMass"], withDefaults=False)
print(len(table))  # 1

Parameters by task

Archive and analysis lookup

Question

Reference

Where are geometry, connectivity and model controls stored?

Native model datasets

Where are result components and steps stored?

Result tables

Which archive versions can the Reader open?

Archive compatibility

Which solution does a setting belong to?

Read the solution sequence and case selections. The Reader catalogue defines record types and defaults. Solver support is specific to the selected analysis.