Hello,
I am designing a heat exchanger in Comsol without actually modeling the fluid. I model a single channel and I am tracking fluid temperature and properties using variables. One specific example is as follows.
Specific Heat (Cp) is looked up with an interpolation function in which fluid temp and pressure are arguments [eg. Cp(T_fluid, P)]. Fluid temperature changes along the axial length of the exchanger in a way dependent on the Cp at any given point. This gives circular dependency.
Right now I start by solving the problem with a constant Cp. I find the fluid temperature at every 'y' location along the axis of the channel and then create a new Cp function in which the argument is y. I physically input that into the model and then solve again. The problem is that I must do this many times for different channel lengths.
I have seen mention of using ODEs and/or iterative solvers, but I can't find a resource showing how to implement those.
Can you help me?
Bryan
I am designing a heat exchanger in Comsol without actually modeling the fluid. I model a single channel and I am tracking fluid temperature and properties using variables. One specific example is as follows.
Specific Heat (Cp) is looked up with an interpolation function in which fluid temp and pressure are arguments [eg. Cp(T_fluid, P)]. Fluid temperature changes along the axial length of the exchanger in a way dependent on the Cp at any given point. This gives circular dependency.
Right now I start by solving the problem with a constant Cp. I find the fluid temperature at every 'y' location along the axis of the channel and then create a new Cp function in which the argument is y. I physically input that into the model and then solve again. The problem is that I must do this many times for different channel lengths.
I have seen mention of using ODEs and/or iterative solvers, but I can't find a resource showing how to implement those.
Can you help me?
Bryan