neqsim-dynamic-instrument-controller-setup
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Set up measurement devices and PID-style controllers for NeqSim dynamic process simulations. USE WHEN: a task needs to add transmitters, controller devices, valve manipulation, setpoints, controller action, and autotuning workflow guidance before runTransient calculations.
In this repository90 other files it gives its agents.
- neqsim-document-intelligence-extractionSkill
- neqsim-co2-emissions-screeningSkill
- neqsim-energy-emissions-screeningSkill
- neqsim-weather-dataSkill
- neqsim-anp-open-dataSkill
- neqsim-artificial-lift-screeningSkill
- neqsim-asset-value-npv-screeningSkill
- neqsim-capex-opex-screeningSkill
- neqsim-design-basis-screeningSkill
- neqsim-economy-basis-screeningSkill
- neqsim-ncs-infrastructure-networkSkill
- neqsim-ncs-ownership-equitySkill
- neqsim-ncs-value-chain-optimizationSkill
- neqsim-norwegian-continental-shelf-dataSkill
- neqsim-psc-bid-economics-screeningSkill
- neqsim-reservoir-depletion-screeningSkill
- neqsim-reservoir-facility-value-chainSkill
- neqsim-reservoir-model-builderSkill
- neqsim-resource-classification-screeningSkill
- neqsim-hydrate-margin-checkSkill
- neqsim-hydrate-screeningSkill
- neqsim-multiphase-flow-slug-screeningSkill
- neqsim-olga-multiphase-simulatorSkill
- neqsim-produced-water-scale-screeningSkill
- neqsim-surf-cooldown-screeningSkill
- neqsim-two-phase-flow-regime-screeningSkill
- neqsim-wax-margin-checkSkill
- neqsim-acoustic-induced-vibration-screeningSkill
- neqsim-adsorbent-capillary-condensation-screeningSkill
- neqsim-ageing-life-extension-screeningSkill
- neqsim-cfd-couplingSkill
- neqsim-compressor-antisurge-recycleSkill
- neqsim-compressor-operating-window-checkSkill
- neqsim-compressor-power-screeningSkill
- neqsim-continuous-improvement-toolkitSkill
- neqsim-control-authority-screeningSkill
- neqsim-control-valve-cv-screeningSkill
- neqsim-dry-gas-seal-screeningSkill
- neqsim-dynamic-process-preparationSkill
- neqsim-fem-couplingSkill
- neqsim-fired-heater-duty-screeningSkill
- neqsim-flow-induced-vibration-screeningSkill
- neqsim-gas-scrubber-sizing-screeningSkill
- neqsim-gas-turbine-performance-screeningSkill
- neqsim-heat-exchanger-fouling-assessmentSkill
- neqsim-line-velocity-checkSkill
- neqsim-noise-screeningSkill
- neqsim-pipe-wall-thickness-screeningSkill
- neqsim-piping-flexibility-screeningSkill
- neqsim-pressure-drop-screeningSkill
- neqsim-pump-hydraulics-screeningSkill
- neqsim-reciprocating-compressor-screeningSkill
- neqsim-reliability-data-screeningSkill
- neqsim-sand-erosion-screeningSkill
- neqsim-separator-modellingSkill
- neqsim-teg-dehydration-modelingSkill
- neqsim-uncertainty-quantificationSkill
- neqsim-utility-balance-screeningSkill
- neqsim-water-dewpoint-dehydration-screeningSkill
- neqsim-benchmark-reference-dataSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use this skill when an agent must add instruments and controllers to a NeqSim dynamic process model.
- Distinctive: line 20
When a dynamic NeqSim model needs level, pressure, temperature, or flow measurement devices.
- Very specific: line 21
When a process valve or unit should be manipulated by a controller during runTransient().
- Distinctive: line 22
When an agent needs to create public controller setup guidance with setpoints, min/max transmitter ranges, and PID parameters.
- Very specific: line 23
When controller event logs and autoTuneFromEventLog(False) should be used for tuning studies.
- Distinctive: line 50
Create a measurement device for the measured unit or stream.
- Distinctive: line 57
Run transient simulation and inspect response, saturation, and stability.
- Distinctive: line 152
No proprietary control narratives, operating procedures, or safety instrumented functions are included.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dynamic Instrument Controller Setup
Use this skill when an agent must add instruments and controllers to a NeqSim dynamic process model. It documents transmitter selection, controller configuration, valve or equipment manipulation, direct/reverse action checks, and transient validation.
When to Use
- When a dynamic NeqSim model needs level, pressure, temperature, or flow measurement devices.
- When a process valve or unit should be manipulated by a controller during
runTransient(). - When an agent needs to create public controller setup guidance with setpoints, min/max transmitter ranges, and PID parameters.
- When controller event logs and
autoTuneFromEventLog(False)should be used for tuning studies.
Inputs
loop_name: public loop identifier such asLC-001orPC-001.controlled_variable: measured variable such aslevel,pressure,temperature, orflow.transmitter_target: NeqSim unit or stream that the transmitter measures.manipulated_equipment: valve or equipment receiving the controller.setpoint: controller setpoint in the same basis as the transmitter.minimum_valueandmaximum_value: transmitter validation range.reverse_acting: whether controller output decreases when measured value increases.kp,ti,td: PID parameters forControllerDeviceBaseClass#setControllerParameters(...).
Outputs
loop_ready: boolean indicator for whether the supplied loop metadata is complete and internally consistent.transmitter_class: recommended NeqSim transmitter class.controller_steps: NeqSim API sequence for creating and attaching the control loop.validation_warnings: missing range, action, setpoint, or tuning issues.autotune_steps: optional event-log and setpoint-step workflow.
Engineering Method
The Python class DynamicInstrumentControllerModel is a public control-loop setup checker. It does not tune or run NeqSim. It maps a controlled variable to a known NeqSim measurement-device class and validates that the controller metadata is sufficient for a dynamic simulation workflow.
The controller guidance uses NeqSim's dynamic control pattern:
- Create a measurement device for the measured unit or stream.
- Set transmitter minimum and maximum values.
- Create
ControllerDeviceBaseClass. - Attach the transmitter.
- Set direct or reverse action.
- Set controller setpoint and PID parameters.
- Attach the controller to the manipulated valve or equipment.
- Run transient simulation and inspect response, saturation, and stability.
Python Usage Pattern
from dynamic_instrument_controller_setup import DynamicInstrumentControllerModel
model = DynamicInstrumentControllerModel()
loop = model.evaluate(
loop_name="LC-001",
controlled_variable="level",
transmitter_target="V-001",
manipulated_equipment="LCV-001",
setpoint=0.3,
minimum_value=0.01,
maximum_value=0.99,
reverse_acting=True,
kp=25.8,
ti=400.1,
td=0.0,
)
print(loop.loop_ready)
print(loop.transmitter_class)
print(loop.controller_steps)NeqSim implementation pattern:
lt01 = ns.process.measurementdevice.LevelTransmitter(v001)
lt01.setMaximumValue(0.99)
lt01.setMinimumValue(0.01)
lc01 = ns.process.controllerdevice.ControllerDeviceBaseClass()
lc01.setTransmitter(lt01)
lc01.setReverseActing(True)
lc01.setControllerSetPoint(0.3)
lc01.setControllerParameters(25.8, 400.1, 0.0)
lcv001.setCalculateSteadyState(False)
lcv001.setController(lc01)
process.add(lt01)
process.run()
process.storeInitialState()
process.runTransient()Pressure control example:
pt01 = ns.process.measurementdevice.PressureTransmitter(v001.getGasOutStream())
pc01 = ns.process.controllerdevice.ControllerDeviceBaseClass()
pc01.setTransmitter(pt01)
pc01.setReverseActing(False)
pc01.setControllerSetPoint(5.0)
pc01.setControllerParameters(1.0, 2000.0, 0.0)
pcv001.setController(pc01)Autotuning workflow:
lc01.resetEventLog()
lc01.setControllerSetPoint(0.33)
# run transient steps and collect response
lc01.setControllerSetPoint(0.27)
# run transient steps and collect response
tuned = lc01.autoTuneFromEventLog(False)
print(lc01.getKp(), lc01.getTi(), lc01.getTd())Validation Checklist
- Controlled variable is mapped to the correct NeqSim transmitter class.
- Transmitter minimum and maximum values bracket the setpoint and expected operating range.
- Controller action is documented as reverse or direct acting.
- Manipulated equipment supports controller attachment and dynamic mode.
- PID parameters are finite and appropriate for a first transient trial.
- Transient response is checked for saturation, instability, and nonphysical states.
- Autotuning is only applied after a deliberate event-log excitation sequence.
Common Mistakes
| Symptom | Cause | Fix |
| Controller drives the valve in the wrong direction | Reverse/direct action is wrong | Check process cause and effect, then set setReverseActing(True/False) correctly |
| Pressure rises or falls away from setpoint | Outlet-valve PI error has the wrong sign | When increasing controller output opens the gas outlet, use measured pressure minus setpoint so high pressure increases outflow |
| Controller never responds | Transmitter or controller was not added or attached | Add the measurement device to the process and attach the controller to manipulated equipment |
| Output saturates at valve limit | Transmitter range, setpoint, or PID gain is unrealistic | Check min/max range, setpoint basis, valve opening limits, and PID parameters |
| Autotune gives poor parameters | Event log does not contain a clear response | Reset event log, apply deliberate setpoint steps, and run enough transient time |
Limitations
- The Python helper does not run NeqSim and does not replace controller tuning.
- No proprietary control narratives, operating procedures, or safety instrumented functions are included.
- PID parameters are setup metadata, not a guarantee of stable operation.
- Human review is required before engineering or operational decisions.
Related NeqSim Functionality
neqsim.process.measurementdevice.LevelTransmitter— separator/vessel level measurement.neqsim.process.measurementdevice.PressureTransmitter— pressure measurement on streams or equipment outlets.neqsim.process.measurementdevice.TemperatureTransmitterandVolumeFlowTransmitter— stream temperature and volume-flow measurements.neqsim.process.controllerdevice.ControllerDeviceBaseClass— transmitter-based dynamic controller with setpoint, action, PID parameters, response, event log, and autotuning support.neqsim.process.equipment.valve.ThrottlingValve#setController(...)— attach a controller to a manipulated valve.neqsim.process.processmodel.ProcessSystem#runTransient()— execute the controlled dynamic process.
In Python these classes are reachable through the neqsim package, for example from neqsim import jneqsim.
References
- NeqSim repository: https://github.com/equinor/neqsim
- NeqSim Skills Guide: https://github.com/equinor/neqsim/blob/master/docs/integration/skills_guide.md
- Public NeqSim dynamic separator and process-control examples.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

