Adding a scalar transport equation to buoyantPimpleFoam
Hello Everyone,
I am trying to add a scalar transport equation to buoyantPimpleFoam, which is a compressible solver. Code:
fvScalarMatrix rhoEEqn Code:
--> FOAM FATAL ERROR: The error pops up when the divergence term is included. I was able to successfully add this scalar equation to buoyantBoussinesqPimpleFoam (incompressible solver). The dimension of rhoE is [0 -3 1 0 0 1 0] Does adding a scalar transport equation to a compressible solver, need any special modification? Is the dimension of phi different in a compressible sovler? Unfortunately, I could not find any tutorial on adding a scalar transport equation to a compressible solver. Kindly, please give me a direction in solving this. Thank You. With Thanks, Pavithra. |
|
Quote:
What about using the scalarTransport functionObject instead? |
Hi Mark,
the function object is a possible and very easy option, I agree. Also the fields should be available during run-time while you can lookup the quantity and re-use it whereever you want. Crazy how powerful the function objects are. |
Respected Prof. Mark Olesen,
Thank you so much for your suggestion. I am very new to OpenFoam. Could you please give me some direction for me to learn about functionObjects. I am interested in learning about that and solve a scalar transport equation using fucntionObject. Thank You. With Thanks, Pavithra. |
Hello Everyone,
I tried to use functionObject to solve a scalar transport equation as suggested by Dr. Mark Olesen. I was able to do it successfully. Now I have a transport equation, which has two convective fluxes. I am puzzled, if I can solve this using functionObject. My base solver is buoyantPimpleFoam and I use OF v6. My transport equation is Here, - Electric charge density - velocity - flux field defined by user - Diffusion coefficient Kindly, please give me a direction to solve this. I want to define a source term which is dependent on this scalar (). Thank You. |
All times are GMT -4. The time now is 10:12. |