CFX, using a controller
Hi
I am reasonably new to ANSYS, i am using workbench 13 i think. I have set up a room in 2D with air flow in and out and walls, with a heat flux at the bottom. I want to be able to pick points (probes?) and when the temperature at any of those points reaches a certain level the heat flux will decrease to a lower discret value. Once the heat flux has decreased if the temperature at another (or the same probe) goes below below a different set temp the heat flux will rise again. The idea is that the controller will keep the room at a stable temperature. I have written this code in MATLAB and simulink but im not sure if i can or how to implement into my CFX model. Am i able to do this? Any help would be greatly appreciated. Thanks |
Without regards to the worthyness of your type of controller and without having actually tested this myself, I can suggest:
Read up help on CEL and Monitor Points. Place a monitor point at the locations that interest you. Then, for your controller create an CEL expression such as (this is a 2 point probes and doesnt include logic if Ts are probes act in ways not intended): step(T-probe(T)@Monitor Point 1)*Heat1+step(T-probe(T)@Monitor Point 2)*Heat2 Use the expression in your heatflux input. This gives you the general idea. You will have to get fancier with the CEL to get your controller to work as you intend. Word of advice-Controllers such as this could be prone to runaway conditions..... |
Quote:
|
You can use the step function like Edmund suggests or if statements. Look in the reference manual for the syntax of these expressions.
|
So if i want to implement a PI controller, is this possible? Also when looking at the results am i able to see the temperature contours at different times (iterations) or is it just the final iteration?
|
Also am i able to plot the heater flux with time, to see when and how it is switching with the temperature changing? Im abit lost, but thanks for your help
|
A PI controller is much harder to implement as it requires historical data and this is tricky in CFX. I would not recommend this for beginners. Also it introduces all sorts of controller stability problems on top of the existing numerical stability problems as Edmund stated.
You can view any variable at any saved time step in the post processor. Yes, you can view heat flux versus time. Make the heat flux a CEL variable and then set a monitor point equal to that variable. You will then have access to the value in the solver manager. |
Quote:
|
Search the forum. There have been so many questions asked on the forum before that it is bound to have been asked before.
|
All times are GMT -4. The time now is 05:36. |