-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addition of scalar point source and its inclusion into a new solver #660
base: main
Are you sure you want to change the base?
Conversation
The new DAFvSourceScalar class looks good. The error you saw was caused by not adding DAFvSourceScalar.C in src/adjoint/Make/files_Incompressible. Also, please modify the existing DASImpleTFoam class, instead of creating a new solver DAMySimpleTFoam. |
Hi, thanks for the feedback. I forgot to mention - I have added DAFvSourceScalar.C in src/adjoint/Make/files_Incompressible and still face this error. I should also mention that the min and max is not being recognized.
|
Added a test case and also modified existing residual class to include source term. |
@uttamcadambi07 Can you (1) delete all the DAMySimpleTFoam related files, (2) delete the test case from the repo and upload to here (we do not put test files in the repo, it will make the repo too large), (3) Many of the regression test failed, please check and make sure you pass all the tests. |
Hi, |
Purpose
This PR adds the passive scalar point source as a FvSource class and includes it into a solver , DAMySimpleTFoam.
Type of change
What types of change is it?
Testing
Explain the steps needed to test the new code to verify that it does indeed address the issue and produce the expected behavior.
Checklist
Error
Seems like the overloaded function is not working. The calcFvSource function is overloaded with volScalarField and volVectorField as outputs in DAFvSource base class. One would expect that this overloading allows flexibility (as can be seen in DAFvSourceHeatSource where calcFvSource returns a volScalarField. However, on testing, this error is reported