Hello,

I would like to ask a question about the Newton solver. Its primary variable switch facility is called at newtonEndStep(). However, the (potentially non-physical) primary variables are passed to newtonUpdate() and then to VolumeVariables::update(), so they can be switched (to a physically correct shape) only after the update(). So, completeFluidState() can get incorrect variables and will have to fix them somehow, which is PrimaryVariableSwitch's job.

Would it not be better to call PrimaryVariableSwitch before the completeFluidState()?

Best regards,

Dmitry


_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to