readSIMPLEcontrols.H doesn´t exist !
|
Ah, of course not! You are trying to compile a solver made for OpenFoam 1.6! In version 2.0, readSIMPLEcontrols.H has been replaced by simpleControl.H. Try replacing the include in my_simpleFoam.C. I can't guarantee you it will work, but it's worth a try. If it doesn't work, take simpleFoam from version 2.0 and add the modifications from this thread to it.
|
I have change the line, re-compile but a new error appear.
I will try to rewrite the new "solver" from 0, because this is for an older version of foam. thanks for all! Quote:
|
I have copied the simpleFoam from /opt/openfoam200/applications/solvers/incompressible, to /home/usuarioubuntu/myfoam directory, then I rename the simpleFoam.C to mysimpleFoam.C, also I have changed the "files" in the Make subdirectory.
Quote:
Quote:
|
Try to replace FOAM_APPBIN in Make/files with FOAM_USER_APPBIN
The error message says that you don't have write permission in the default appbin. |
amazing!! I was able to compile and run a test case of the icofoam+temperature solver.
Thanks Anton!!! |
Quote:
--> FOAM FATAL IO ERROR: keyword div((nuEff*dev(T(grad(U))))) is undefined in dictionary "/home/.../incompressible/my_simpleFoam/case/system/fvSchemes::divSchemes" file: /home/.../incompressible/my_simpleFoam/case/system/fvSchemes::divSchemes from line 32 to line 40. From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 400. FOAM exiting Any suggestions? |
1 Attachment(s)
Hi Rob,
as the error message says you must add an entry for div((nuEff*dev(T(grad(U))))) in the fvSchemes file. Attached is a fvSchemes file for OpenFOAM 2.0.x. Good luck Martin |
Wow, that was quite simple. Sometimes you won't see the wood for trees.
The case is running now. Thank you very much. I have yet another question. Is it possible to add two internalField scalars for the temperature? I have 2 pipes connected to each other which swap heat directly. I need that kind of option, a nonuniform list of scalars did not work out. |
Still won't work.
1 Attachment(s)
Yeah, actually the solver was working ( I did not get an error message ).
But unfortunately the temperature was not solved with the p and U equation. It was not even read. When I performed the 'wmake' command in the console, I got this error message: Code:
SOURCE=my_simpleFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam201/src/turbulenceModels -I/opt/openfoam201/src/turbulenceModels/incompressible/RAS/RASModel -I/opt/openfoam201/src/transportModels -I/opt/openfoam201/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/openfoam201/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/my_simpleFoam.o I tried to figure it out myself with no outcome. |
2 Attachment(s)
Hi Rob,
here is the solver and a case for OpenFOAM 2.0.x. Please be aware, that the name of the solver is mySimpleFoam. Martin |
Thank you Martin for sharing!
|
1 Attachment(s)
Hi,
I have recently pegged away at simpleScalarFoam as well and came up with this: Code:
// --- Scalar Transport I use these schemes for the scalar transport: Code:
grad(T) Gauss linear; This is quite a basic implementation, so it would be nice to add some cool feature like residence time calculation, source terms, ... If I have any progress on this, I will post it as well. |
Viscous Dissipation
Hello everybody,
I m studying polymer rheology under different types of geometry. To do that I work in simpleFoam switching off the turbulent part as the flow is creeping laminar with Re<<1. In the past I sucessfully added the temperature equation on simpleFoam by the help of Martin. However, this equation lacks of the viscous dissipation part that contributes for the frictional loss which at the moment I need to study. In the created file TEqn.H I declared the heat equation as below but I dont know how to insert the viscosity (I use a Newtonian fluid so this is actually the laminar viscosity). The file is: fvScalarMatrix TEqn ( fvm::div(phi, T) - fvm::laplacian(alpha, T) == (1/rho*Cp)*(2*(VISCOSITY??)*symm(fvc::grad(U)) && fvc::grad(U)) ); TEqn.relax(); eqnResidual = TEqn.solve().initialResidual(); maxResidual = max(eqnResidual, maxResidual); Hoping that I ve written the equation correctly....can anybody help me out on how to insert the viscosity??I have tried to insert it as: nu(), nuEff() but it didnt work out (in each case it was reported that....'nu'or 'nuEff' is not declared in this scope). Thanks in advance! Nickolas |
2 Attachment(s)
Hi Nickolas,
you can try the attached solver (for OpenFOAM 2.0.x) and case. Comments are added to the code and the case. Increase of temperature is calculated via controlDict (4.585 K) and nearly matches to the appropriate formula for high viscous newtonian fluids (4.73 K). Ah, and you can access the viscosity for your formula with "laminarTransport.nu()". Martin |
hey,
thanks for sharing the solver .. it works really fine, the only problem I'm having is I'm not getting any T on the paraView .. when i try to view it but I'm getting the results in the folder, any suggestions... to what i could do to get the T in the paraView along with P and U which I'm getting :) regards, hasan. |
hey,
thanks for sharing the solver .. it works really fine, the only problem I'm having is I'm not getting any T on the paraView .. when i try to view it but I'm getting the results in the folder, any suggestions... to what i could do to get the T in the paraView along with P and U which I'm getting :) regards, hasan. |
1 Attachment(s)
Hi Hasan,
have you selected T in the "Volume Fields" list of the Object Inspector? See attached image... Martin |
Thank you .. I'm so sorry i found... it. another doubt abt boundry conditions, can i post it here..? coz there is no reply from the foundry condition forums..?
|
Hi All,
I started to use the solver buoyanSimpleFoam to simulate incompressible liquid water (or "incompressible" vapour water) with temperature field. For this I used the basicRhoThermo type in buoyanSimpleFoam where is possible to choose the incompressible thermo type. But I found some problems I posted here: http://www.cfd-online.com/Forums/ope...implefoam.html My model has also a porous medium. Surfing on the forum I found this post where TEqn is added for simpleFoam solver. I downloaded the last Martin's solvers (thanks to share it!). Hi have two question: 1) Is it correct to use this solver for my case (liquid water or vapour water), or is it better switch off the viscous dissipation? 2) I'd like to add a thermal prop. for the porous zones. I known in OF2.0.x there is a fixedTemperature thermo prop. that add a term in the hEqn. How can "fix" this for TEqn? Thanks for any help Andrea |
All times are GMT -4. The time now is 11:20. |