Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Two-Step Study Issue
Posted 4 giu 2023, 12:58 GMT-4 Heat Transfer, Studies & Solvers, Modeling Workflow 3 Replies
Please login with a confirmed email address before reporting spam
Hi all, I'm having an issue implementing something interesting that I think COMSOL should be able to do.
I have a step which solves for the steady state temperature distribution in a 2D domain subjected to temperature boundary conditions. After the simulation executes, I evaluate the heat flux across one of the boundaries, which happens to be a non-constant distribution.
In a second step, I want to prescribe this heat flux distribution as a boundary condition at that same boundary, swap some of the other BCs, and solve for the new temperature distribution in the domain.
It's really easy to set up a two-step study and use the "Modify for Step" option to assign BCs that are only active in step 1 vs step 2. But the part I am struggling with is assigning this flux boundary condintion is a solution from the previous step. I have tried a few things, including making a second study instead of a second step, trying to reference the results using "sol1.ntflux," bringing in two instances of heat transfer physics, but nothing has worked.
Any tips? Thanks!