HI, Martin, how to realize that the transport properties like nu and DT is a function of temperature in the OpenFOAM? Best regards. Can you help to send a revised solver and simple case as you revised in this topic?
|
I am using OpenFoam 2.2.0.
I downloaded the case and solver of Martin ( post 31) but i could not run the case. Output: Code:
abm5kor@BMH301562:~/Downloads/case_of2$ mySimpleFoam |
You should first compile it.
enter in the mySimpleFoam directory and run wmake. Best Andrea |
As you could not the case, i copied the the simpleFoam-solver in my Home (i followed the tutorial How to add temperature to icoFoam ) and i copied the data content of mySimpleFoam.C in my my_simpleFoam.C.
The case is now working but i got same this warning for every timestep : Code:
Time = 0.03 how can fix the warning? Thx :) |
Quote:
i cannot compil it : Code:
abm5kor@BMH301562:~/OpenFOAM/abm5kor-2.2.0/applications/solvers/my_SimpleFoam$ wmake |
I guess you should update the fvSchemes and fvSolutions files to the latest version you are using.
You can find these files into one of the tutorial case in your openfoam installation. Best Andrea |
Do you think, that i could not compile the new solver, because i did not used the latest version of fvSchemes and fvSolutions?
|
i understood , what i mean Andrea :)
i need the latest version of fvSchemes and fvSolutions, only for running the case :) |
Quote:
|
rasInterFoam problem
hi every one
i have a problem with solution "damBreak" tutorial in OpenFoam with rasInterFoam solver.when i type " rasInterFoam " in terminal , it seid " rasInterFoam: command not found " !! do every one how can i solve my problem ? version of my OpenFoam is 2.2.1 ; it hasn't rasInterFoam but in folder of interFoam ( or many of other solvers) it has "ras" and "les" folder . and my damBreak folder has " RASProperties " .:confused: |
Hey jvd.mechanic,
there is no rasInterFoam in 2.2.1. Just use interFoam as it is supports generic turbulence modeling like RAS, LES or laminar. Just set the constant/transportProperties and RAS/LESProperties according to the model you want to use. See here: $FOAM_SOLVERS/multiphase/interFoam line 34: Quote:
|
Regarding adding the equation in simpleFoam solver
Greeting Martin and all ,
i am using OF-2.2 and i need to find scaler dissipation rate (chi) of the cold flow for that i have to add mixture fraction variance (Zvar) equation into the existing solver, as chi= Cx * epsilon/k * Zvar so now i had made separate my_simpleFoam solver but not getting idea how to proceed further. so can somebody guide me through this problem:) Thank You, Regards, Sonu |
Hello,
Can someone please explain me. What does adding temperature to simpleFoam solver essentially means? Does it mean 1. That we want to obtain both the flow field and the temperature(not coupled) distribution and if so why not use scalarTransportFoam after obtaining the flow field using simpleFoam ? or 2. If we want to consider a strong coupling of the flow field with the temperature distribution(which effects the density and viscosity) why not use rhoSimpleFoam ? or. 3. we consider small variations in temperature and thus density in which case we can use buoyantBoussinesqSimpleFoam. Please if someone could illustrate. I am confused. I want to model a burner with turbulent reacting flows and I started with laminar flow, isothermal turbulent flow and next I want to learn non-isothermal turbulent flow. But I dont understand which model will be the best suited for the last case? |
Quote:
The reason why in a non-Newtonian (non-Newtonian means that viscosity changes) incompressible flow we must add T is that, like in my case, the viscosity depends to the T field. Not solving for T we do not know the viscosity and therefore we solve fore a fluid that has different properties. I would be very thankful if somebody shared with me his experience solving a problem as complex as mine. I feel I am in a bucket with glue. |
Both effective diffusivity(DTEff) and viscosity can be updated at each step of the simulation by reading the previous temperature field and re-calculating these quantities.
I myself have done for DTEff but not for viscosity. for DTEff follow https://openfoamwiki.net/index.php/C...mpleScalarFoam For viscosity you can refer to http://www.tfd.chalmers.se/~hani/kur...nFoam%20v2.pdf Note that what you are looking for is a very basic functionality and is available in all complex OpenFOAM solvers for instance reactingFoam calculates laminar viscosity using Sutherlands Law. However its difficult to understand these complex solvers at the first place. Quote:
|
Hello everyone,
Does anybody know how the wall heat flux is used with mySimpleFoam? Best, |
Quote:
there are two ways to specify it: - with turbulentHeatFluxTemperature as a BC (you can check the code, it is easy to read) - with groovyBC, you give the definition of the gradient of temperature as a function of the heat flux - you give a fixedGradient (if the thermal conductivity dos not change, you will have the same heat flux along the wall) |
Dear Agustin,
Thank you for your answer. When I use turbulentHeatFluxTemperature BC, I am getting request for volScalarField kappaEff from objectRegistry region0 failed available objects of type volScalarField are 8 ( nut pPrevIter TPrevIter k nu p T epsilon ) error Also, I tried to use fixedGradient BC, and heat flux value is 400 W/m^2 however, when I compared the results between Fluent and OF, walls heated the system just 1 Kelvin in OF and roughly 50 K in Fluent. I dont know what the problem is. Best, |
Quote:
the BC works like this:
|
scalar transport not working
Hi all,
I am relatively new to OpenFOAM. I am using OpenFOAM 4. I tried to add concentration, a scalar field, in the ways mentioned in the previous posts but unable to find it implemented in my test case. When I run the case file the entire region is filled with initial conditions of the concentrations that I specified. I have attached the codes below. Any directions will be very helpful. Thank you! createfields.h Code:
Info<< "Reading field p\n" << endl; Code:
Code:
|
All times are GMT -4. The time now is 10:56. |