How to fix a value in the buoyanPimpleFoam solver?
1 Attachment(s)
Dear all,
I am trying to add a constant field at the buoyantPimpleFoam (thank to the explicitSetValue feature) ad I did for the buoyantSimpleFoam (see here). I modified the solver and you can find it attached. When I try to use it, I get the following error: Code:
lab@lab-laptop:~/Documenti/cases_OF/OF_case10_unsteady1_mod$ buoyantPimpleFoam_Epta Thanks a lot, Samuele |
Looks to me like it is dying on the thermo.correct() line after the hEqn solution. Are you sure your initial conditions are correct/valid? For example, have you verified that your setup works with the standard buoyantPimpleFoam without sources?
Other than that, I have no experience with this thermo model so I can't really say much. Good luck. |
1 Attachment(s)
Dear Kent, Dear All,
first of all, thanks for answering. Actually, I did try my case with the standard buoyantSimpleFoam solver and - tough a bit slow - it works. Now it is a bit different: I've edited my solver (see attached) and I get this error: when I write Code:
sources.constrain(hEqn); Code:
lab@lab-laptop:~/Documenti/cases_OF/OF_case10_unsteady1_mod$ buoyantPimpleFoam_Epta |
1 Attachment(s)
Dear Kent, Dear All,
I still have some problems with the buoyantPimpleFoam_Epta. It is very strange, since I have done the same modification I did with the steady solver. When I run it, trying to impose the velocity, I get this error message: Code:
lab@lab-laptop:~/Documenti/cases_OF/OF_case09_steady_vs_unsteady/unsteady_mod$ buoyantPimpleFoam_Epta Could you help? Thanks a lot, Samuele |
2 Attachment(s)
Here the 2 solvers.
buoyantSimpleFoam works properly, buoyantPimpleFoam doesn't. Any idea? Thanks a lot, Samuele |
Hi Samuele,
Unfortunately I'm not experienced enough yet to be able to simply look at a modified solver source code and indicate where the problem might be. I'm not sure if I would be able to point out the problem with examples cases either... But for other people with a bit more experience, it would be good if you also provided an example case for each solver, so anyone can do some trial-and-error in figuring out what's wrong with it! Best regards, Bruno |
This is the link to my case. I provide only the case that I need to solve using buoyanyPimpleFoam_Epta, since buoyanySimpleFoam_Epta works properly.
Thanks a lot Samuele |
You example case is missing polyMesh/sets and does not run. You have not included a topoSetDict so I am not sure how you are setting this. Seems like you mentioned some way to set this from you cellZone. Please instruct.
|
Ooops, sorry.
Let me upload a new case, then. As far as topoSetDict is concerned, I do not need it. In buoyantSimpleFoam_Epta I run (successefully!) the case without that file. Here you can download the new case. Thanks a lot, Samuele |
Runs with no problem on my machine. Based on the malloc error you are seeing, probably it is linking to the wrong library somewhere and you need to recompile it. Try to wclean and then wmake again the solver and see if it works.
BTW, I also ran with 8 cores no problems. |
Sorry,
my solver with this case works because you don't have any source applied. The point is that when you add the sourcesProperties file in the constant folder something strange happens. You could try, copying this text in an empty file and saving it as sourcesProperties in the constant folder: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Thanks a lot, Sam |
Looks like the problem is with thermo.correct(). Perhaps there is some reason this does not work with sources? Unfortunately I have no experience with this specific class of solvers.
|
1 Attachment(s)
Hi Kent and thanks again for answering.
Actually, if you look at the buoyanSimpleFoam_Epta (attached here!), you can see that it is the same and that the sources can work with the thermo.correct. It's strange: it works with the steady case, but it doesn't with the unsteady. Does anyone have an idea? Thanks, Sam |
2 Attachment(s)
Hey Kent, Hey all,
pardon the question, but what about thermo.correct? Which files are linked to this line and what it does? Thanks a lot, Samuele |
All times are GMT -4. The time now is 19:01. |