Skip to content

Going back to initial state change L0 #473

Description

@adriengoeller

Initial case with default climate condition. We get L_ref = [299.91591107 402.65322025 498.98796059]

First step: change state to 65°

2026-06-25 17:51:29,064 - mechaphlowers.utils - DEBUG - function: solve_change_state with args:[(), {'wind_pressure': 0.0, 'ice_thickness': 0.0, 'new_temperature': 15.0} solved in 0.0110 seconds.
pyodide.asm.js:8 2026-06-25 17:51:29,070 - mechaphlowers.api.section_study - DEBUG - Intermediate warm-start solve at default conditions.
pyodide.asm.js:8 2026-06-25 17:51:29,070 - mechaphlowers.core.models.balance.engine - DEBUG - Starting change state.
pyodide.asm.js:8 2026-06-25 17:51:29,070 - mechaphlowers.core.models.balance.engine - DEBUG - Parameters received: 
pyodide.asm.js:8 wind_pressure 0.0
pyodide.asm.js:8 ice_thickness 0.0
pyodide.asm.js:8 new_temperature 15.0
pyodide.asm.js:8 wind_direction anticlockwise
pyodide.asm.js:8 2026-06-25 17:51:29,071 - mechaphlowers.core.models.balance.engine - DEBUG - Adjustment has been done before, initial_L_ref before shifting: [299.91591107 402.65322025 498.98796059]
pyodide.asm.js:8 2026-06-25 17:51:29,080 - mechaphlowers.core.models.balance.engine - DEBUG - Output : get_displacement 
pyodide.asm.js:8 [[ 2.90593212e+00 -3.52679762e-01 -6.56639538e-01]
pyodide.asm.js:8  [-3.47532600e-04 -8.95474781e-01 -2.86323677e+00]
pyodide.asm.js:8  [ 1.54826440e-05 -1.39614322e-02 -2.99996751e+00]
pyodide.asm.js:8  [-2.75982476e+00 -7.70621409e-05 -1.17616635e+00]]
pyodide.asm.js:8 2026-06-25 17:51:29,080 - mechaphlowers.utils - DEBUG - function: solve_change_state with args:[(), {'wind_pressure': 0.0, 'ice_thickness': 0.0, 'new_temperature': 15.0} solved in 0.0110 seconds.
pyodide.asm.js:8 2026-06-25 17:51:29,080 - mechaphlowers.core.models.balance.engine - DEBUG - Starting change state.
pyodide.asm.js:8 2026-06-25 17:51:29,080 - mechaphlowers.core.models.balance.engine - DEBUG - Parameters received: 
pyodide.asm.js:8 wind_pressure 0
pyodide.asm.js:8 ice_thickness 0.0
pyodide.asm.js:8 new_temperature 65
pyodide.asm.js:8 wind_direction clockwise
pyodide.asm.js:8 2026-06-25 17:51:29,081 - mechaphlowers.core.models.balance.engine - DEBUG - Adjustment has been done before, initial_L_ref before shifting: [299.91591107 402.65322025 498.98796059]
pyodide.asm.js:8 2026-06-25 17:51:29,136 - mechaphlowers.core.models.balance.engine - DEBUG - Output : get_displacement 
pyodide.asm.js:8 [[ 2.86421739e+00 -3.46934627e-01 -8.22128390e-01]
pyodide.asm.js:8  [ 6.73020345e-02 -8.16748081e-01 -2.88589553e+00]
pyodide.asm.js:8  [ 1.14793735e-01 -1.07309392e-02 -2.99778372e+00]
pyodide.asm.js:8  [-2.70581343e+00 -5.80851744e-05 -1.29559782e+00]]
pyodide.asm.js:8 2026-06-25 17:51:29,136 - mechaphlowers.utils - DEBUG - function: solve_change_state with args:[(), {'wind_pressure': 0, 'ice_thickness': 0.0, 'new_temperature': 65, 'wind_direction': 'clockwise'} solved in 0.0550 seconds.
pyodide.asm.js:8 2026-06-25 17:51:29,136 - stellar_engine - DEBUG - >>[API] | change_state completed

2nd step: (not reproductible in mechaphlowers) delete loads

Executing task: deleteAllLoads, triggering Python function: delete_all_loads
pyodide.asm.js:8 2026-06-25 17:51:39,852 - mechaphlowers.core.geometry.position_engine - DEBUG - Position engine notified from balance engine.
pyodide.asm.js:8 2026-06-25 17:51:39,883 - mechaphlowers.core.models.balance.engine - DEBUG - Balance engine initialized.
pyodide.asm.js:8 2026-06-25 17:51:39,883 - mechaphlowers.core.models.balance.engine - DEBUG - Loads have been added. PlotEngine will be notified automatically via the observer pattern; no manual reset is required.
pyodide.asm.js:8 2026-06-25 17:51:39,883 - stellar_engine - DEBUG - >>[API] | delete_all_loads completed
logger.service.ts:19 Task deleteAllLoads executed successfully, converting result to JS object

3rd step: plot the state with default climatic conditions

2026-06-25 17:51:39,883 - stellar_engine - DEBUG - >>[API] | change_state triggered
pyodide.asm.js:8 2026-06-25 17:51:39,884 - stellar_engine - DEBUG - python_inputs: {'climate': {'windPressure': 0, 'cableTemperature': 15, 'symmetryType': 'symmetric', 'iceThickness': 0, 'frontierSupportNumber': None, 'iceThicknessBefore': None, 'iceThicknessAfter': None}}
pyodide.asm.js:8 2026-06-25 17:51:39,888 - stellar_engine - DEBUG - ---------Load case applied to engine---------
pyodide.asm.js:8 2026-06-25 17:51:39,888 - stellar_engine - DEBUG - Wind pressure: 0, Cable temperature: 15, Ice thickness: 0.0
pyodide.asm.js:8 2026-06-25 17:51:39,888 - stellar_engine - DEBUG - -----------------------------------------------
pyodide.asm.js:8 2026-06-25 17:51:39,888 - mechaphlowers.core.models.balance.engine - DEBUG - Starting adjustment.
pyodide.asm.js:8 2026-06-25 17:51:39,982 - mechaphlowers.core.models.balance.engine - DEBUG - Output : L_ref = [299.57177301 402.19119541 498.41539495]
pyodide.asm.js:8 2026-06-25 17:51:39,983 - mechaphlowers.utils - DEBUG - function: solve_adjustment with args:[(), {} solved in 0.0940 seconds.
pyodide.asm.js:8 2026-06-25 17:51:39,983 - mechaphlowers.api.section_study - DEBUG - Intermediate warm-start solve at default conditions.
pyodide.asm.js:8 2026-06-25 17:51:39,983 - mechaphlowers.core.models.balance.engine - DEBUG - Starting change state.
pyodide.asm.js:8 2026-06-25 17:51:39,983 - mechaphlowers.core.models.balance.engine - DEBUG - Parameters received: 
pyodide.asm.js:8 wind_pressure 0.0
pyodide.asm.js:8 ice_thickness 0.0
pyodide.asm.js:8 new_temperature 15.0
pyodide.asm.js:8 wind_direction anticlockwise
pyodide.asm.js:8 2026-06-25 17:51:39,983 - mechaphlowers.core.models.balance.engine - DEBUG - Adjustment has been done before, initial_L_ref before shifting: [299.57177301 402.19119541 498.41539495]

See L_ref before shifting changed, it should not

Loading a new loadcase is setting back to initial:

2026-06-25 18:13:06,878 - stellar_engine - DEBUG - >>[API] | set_loads triggered
pyodide.asm.js:8 2026-06-25 18:13:06,878 - stellar_engine - DEBUG - python_inputs for set_loads: {'spanLoads': [{'supportUuid': 'b63c8dd7-f48c-4e74-aa37-633e36d64af2', 'loadPosition': 0, 'loadWeight': 0, 'type': 'punctual', 'referenceSupport': 'LEFT'}, {'supportUuid': '03fbcc93-9836-48e9-9500-e3eaf665db92', 'loadPosition': 0, 'loadWeight': 0, 'type': 'punctual', 'referenceSupport': 'LEFT'}, {'supportUuid': '3ad1abfd-a441-4d54-9529-d31d0b9b46a4', 'loadPosition': 0, 'loadWeight': 0, 'type': 'punctual', 'referenceSupport': 'LEFT'}, {'supportUuid': '3a75964d-9dbe-4027-8834-82f01e8838df', 'loadPosition': 0, 'loadWeight': 0, 'type': 'punctual', 'referenceSupport': 'LEFT'}]}
pyodide.asm.js:8 2026-06-25 18:13:06,891 - stellar_engine - DEBUG - Applying span loads: positions=[0 0 0 0], masses=[0. 0. 0. 0.]
pyodide.asm.js:8 2026-06-25 18:13:06,896 - mechaphlowers.core.models.balance.engine - DEBUG - Resetting balance engine.
logger.service.ts:19 Executing task: setLoads, triggering Python function: set_loads
pyodide.asm.js:8 2026-06-25 18:13:07,123 - mechaphlowers.core.geometry.position_engine - DEBUG - Position engine notified from balance engine.
pyodide.asm.js:8 2026-06-25 18:13:07,155 - mechaphlowers.core.models.balance.engine - DEBUG - Balance engine initialized.
pyodide.asm.js:8 2026-06-25 18:13:07,156 - mechaphlowers.core.models.balance.engine - DEBUG - Loads have been added. PlotEngine will be notified automatically via the observer pattern; no manual reset is required.
pyodide.asm.js:8 2026-06-25 18:13:07,156 - stellar_engine - DEBUG - >>[API] | set_loads completed
logger.service.ts:19 Task setLoads executed successfully, converting result to JS object
logger.service.ts:19 Executing task: changeState, triggering Python function: change_state
pyodide.asm.js:8 2026-06-25 18:13:07,156 - stellar_engine - DEBUG - >>[API] | change_state triggered
pyodide.asm.js:8 2026-06-25 18:13:07,156 - stellar_engine - DEBUG - python_inputs: {'climate': {'windPressure': 0, 'cableTemperature': 15, 'symmetryType': 'symmetric', 'iceThickness': 0, 'frontierSupportNumber': None, 'iceThicknessBefore': None, 'iceThicknessAfter': None}}
pyodide.asm.js:8 2026-06-25 18:13:07,161 - stellar_engine - DEBUG - ---------Load case applied to engine---------
pyodide.asm.js:8 2026-06-25 18:13:07,161 - stellar_engine - DEBUG - Wind pressure: 0, Cable temperature: 15, Ice thickness: 0.0
pyodide.asm.js:8 2026-06-25 18:13:07,161 - stellar_engine - DEBUG - -----------------------------------------------
pyodide.asm.js:8 2026-06-25 18:13:07,161 - mechaphlowers.core.models.balance.engine - DEBUG - Starting adjustment.
pyodide.asm.js:8 2026-06-25 18:13:07,273 - mechaphlowers.core.models.balance.engine - DEBUG - Output : L_ref = [299.91591107 402.65322025 498.98796059]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions