Skip to content

UDE to solve buffer #505

Answered by fwitte
gregorlein asked this question in Q&A
Apr 18, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Hi Paula,

thank you, that is very helpful. Simple issue actually:

calc_T (all the calc_... methods of Connections actually) will provide you SI values... So you are mixing °C with K here, which is why, the solver cannot find a solution (see the warning message on the remaining residual value). Go with something like this:

def simple_system_ude():

    sp= Splitter('Splitter')
    me = Merge('Merge')
    va = Valve('Valve')
    boiler = SimpleHeatExchanger('Boiler')
    buffer = SimpleHeatExchanger('Buffer')
    si = Sink('sink')
    so = Source('source')

    c0 = Connection(so, 'out1', sp, 'in1', label='0')
    c1 = Connection(sp, 'out1', va, 'in1', label='1')
    c1a = Connection(va, 'o…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@fwitte
Comment options

@gregorlein
Comment options

@gregorlein
Comment options

@fwitte
Comment options

Answer selected by gregorlein
@gregorlein
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants