← Back to team overview

yade-users team mailing list archive

Re: [Question #697994]: how to decrease desired cell temperature constantly

 

Question #697994 on Yade changed:
https://answers.launchpad.net/yade/+question/697994

ibraheem khan posted a new comment:
Thanks Robert   
it works now 

def centerCellTemp():
        centerCellId=flow.getCell(.5,.5,.5)
        cellBoundaryCondition=flow.setCellTImposed(centerCellId, 303.15)
        centerCellTemperature=flow.setCellTemperature(centerCellId, linearFunction(O.iter))

def linearFunction(x):
    m = -.01 # change of degrees/iteration
    b = 523.15 # degrees @ iteration 0
    y=m*x+b
    return (y)
O.engines=O.engines+[PyRunner(iterPeriod=20,command ='centerCellTemp()')]
\
 but i have an issue , my  cell temperature decrease below my desired vale i imposed .
i want cell temperature to be 303.15 but it goes up to -860.15 
how can i control it?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.