Add and compile new primal solver #248
Replies: 4 comments 7 replies
-
|
Can you elaborate on what exactly have you changed/added to add a new solver? It is likely that you missed some steps. |
Beta Was this translation helpful? Give feedback.
-
|
@friedenhe Dear Dr. He, I observed a complete optimization process of the pitzDaily case, but what bothers me now is that I can't find any criteria or conditions for ending up the optimization. Of course, the process automatively ends up when it fulfill the max iteration step 50 I defined. But it must have some other conditions to operate, Especially, what if I want to end up the optimization when the whole variable field, like alphaPorosity, not change anymore. Can you give me some hints about this? |
Beta Was this translation helpful? Give feedback.
-
|
@friedenhe Dear He, I noticed that in your paper, you said that ADflow is a compressible solver, and DAFoam is a incompressible solver. But I found that the rhoSimpleFoam is included in the DAFoam, actually, I want to ask that if I want to further research the compressible flow with rhoCentralFoam, we know that rhoCentralFoam is a density based solver, is it possible to add rhoCentralFoam into the current DAFoam? Which state variables and residual equations should I define? Could you please offer me some assistance? |
Beta Was this translation helpful? Give feedback.
-
|
We added a few new features after the paper, and DAFoam supports subsonic and transonic cases now. But it does not work for supersonic flow yet. rhoCentralFoam is very different from the solvers already differentiated in DAFoam because it uses LTS. So we haven't gotten a chance to think about how to best differentiate it yet.. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
@friedenhe Dear Dr.He, I tried to add a new primal solver named myDASimpleFoam, and here is my update process:
The compilation last a real long time, then no error have been found. But, when I use the new myDASimpleFoam to run the pitzDaily case, I encountered the following error:
| DAFoam v2.2.5 |
Traceback (most recent call last):
File "runScript.py", line 153, in
DASolver = PYDAFOAM(options=daOptions, comm=gcomm)
File "/home/lxl/dafoam/packages/miniconda3/lib/python3.6/site-packages/dafoam/pyDAFoam.py", line 635, in init
self._initSolver()
File "/home/lxl/dafoam/packages/miniconda3/lib/python3.6/site-packages/dafoam/pyDAFoam.py", line 2162, in _initSolver
from .pyDASolverIncompressible import pyDASolvers
ImportError: dynamic module does not define module export function (PyInit_pyDASolverIncompressible)
I have no idea about this and don't know how to operate correctly. I am wondering whether the compile process is correct. Could you please offer me some assistance?
Beta Was this translation helpful? Give feedback.
All reactions