I want to be able to export the heat flux at a boundary with a fixed temperature condition. I figured the best way to try to get a handle on it would be to set up a model with a defined heat flux boundary condition that I then try to solve/export the heat flux at this boundary to see if they match up. I went through fluxsolver test files to learn about how to set this up. I used
My VTU file now contains 'Temperature Flux'. Is this supposed to be the heat flux? The magnitude of the 'Temperature Flux' does not match what I set for the boundary condition. Shouldn't these match up?
If somebody is able to walk me through this I would appreciate it. Sorry, I know this probably basic stuff...
They normal component of "Temperature Flux" at the boundary should be quite close to the prescribed heat flux on the boundary. Not exactly same but not too far off either. -Peter
The Temperature flux magnitude doesn't match my set heat flux at all. It is less than half. To calculate the normal component could I use the NormalSolver or do I need to write a UDF to handle this? I have not used that solver before.
Maybe a photo would be more helpful. The model is 2D. This boundary has a heat flux set at 5161 W/m2. When I use Fluxsolver to compute the 'Temperature Flux' and review it in Paraview I get something completely different. Is this not the way to go about it? I would have expected it to be closer to the set heat flux. Instead I get something closer to ~3800. I know it will be slightly off because it is not exactly at normal, but it should be closer, no?
The difference is that the FluxSolver computes fluxes at the integration points and makes a best possible fit for them to the nodes. This is not exactly the same that was set at the boundaries. However, this gives some measure of goodness of the mesh as these two approximations should approach each other. The initial mesh is too coarse to capture the solution accurately. Kevin's mesh does a better job at this.
If you want to exactly capture what you describe you can use "Calculate Loads" and "Calculate Boundary Weights" (i think). The loads will be exact (in Watts) and you can get the normal flux by diving with the corresponding weight (in m^2).
It makes sense that the resolution of the mesh is not fine enough to get the results to match up. Thank you kevinarden for taking the time to check your own simulation and responding to my questions!
Peter,
I've implemented the term 'Calculate Loads = Logical True' and 'Calculate Weights = Logical True' in the heat equation solver. I now have 'Temperature Loads' and 'Temperature Weights' in my VTU files. Now I get something like this:
Is this 340.807 Watts and 0.00238177 m (for the 2D)?
I must be misinterpreting what you are saying. Dividing these through does not give anywhere near the boundary condition of 5161 that I have set.
The keyword was "calculate boundary weights = Logical True". The "calculate weights" will give you the corresponding volume each node represents. You want an area here...