Query Regarding DAResidual Registration in DAFoam #500
lnhang0618
started this conversation in
General
Replies: 1 comment
-
I believe I have resolved this issue. Within the RTS (Run Time Selection) mechanism, registration is not done using the filename like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Prof. He,
I've come across an intriguing detail that I'd like to discuss. Specifically, I noticed that the
DAResidualPtr_
pointer inDASolver
gets redirected increateAdjointIncompressible.H
by the following code:daResidualPtr_.reset(DAResidual::New(solverName, mesh, daOptionPtr_(), daModelPtr_(), daIndexPtr_()));
Being acquainted with OpenFOAM's Run-Time Selection (RTS) mechanism, I sought out the registration of
DASimpleFoam
using:addToRunTimeSelectionTable(DAResidual, DASimpleFoam, dictionary);
However, to my surprise, I couldn't locate this. Instead, I stumbled upon:
addToRunTimeSelectionTable(DAResidual, DAResidualSimpleFoam, dictionary);
This has led to some confusion on my end. Given the apparent absence of direct registration of
DASimpleFoam
within theDAResidual
base class, I'm curious about the connection between DASimpleFoam and DAResidualSimpleFoam.Warm regards,
Luo Yinhang
Beta Was this translation helpful? Give feedback.
All reactions