Foam Serious Error while running solver
Hi everyone,
I am receiving errors regarding two volScalarFields while running my own solver. It's strange to me that only these two variables are causing errors, considering I have defined and worked with other variables in the code without any issues during solver execution. Additionally, I should mention that the solver compiles without any errors or warnings. It's a coupling solver with LIGGGHTS (CFD-DEM), but I'm encountering this error prior to the coupling initiation at each CFD time-step. I am confused why I am getting error just for these two variables, I would appreciate it if anyone can help me. Error: Quote:
Code:
volScalarField cellQj Code:
|
Hello Hamedhoorijani,
Not sure this will help, but in your definition of the fields one line seems to be missing; the mesh.time().timeName() parameter inside the IOobject. As per the coding guidelines (https://develop.openfoam.com/Develop...terns/registry) new field definition format is as follows: fieldPtr = new volScalarField ( IOobject ( objectName, mesh.time().timeName(), mesh.thisDb(), IOobject::NO_READ, IOobject::NO_WRITE // implicit: IOobject::REGISTER ), mesh, dimensionedScalar(dimless, Zero) // implicit: calculatedType() ); |
Quote:
Good answer, BTW. |
Dear Vinayak and Mark,
Thank you for your reply. Overlooking those lines was indeed the cause of errors that I was getting. It is solved now. |
All times are GMT -4. The time now is 14:36. |