Convection–diffusion equation solver
Hi
I would create my solver for convectio-diffusion equation: http://upload.wikimedia.org/math/5/4...779b9a954a.pngWhere v field is know. Where should I star to solve this problem? How can I create OpenFoam code? I would use simpleFoam to calculate U field and join simpleFoam solver with my solver to have only one solver to calculate scalar field c. Thanks |
Your problem is pretty much equivalent to this one: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam. Just instead of adding the equation to icoFoam, do so with simpleFoam.
|
Thanks
Perfect, but in simpleFoam (or pisoFoam) where I add this line: dimensionedScalar nu ( transportProperties.lookup("nu") ); for my scalar transport properties? |
I would add the following code to createFields.H:
Code:
Info<< "Reading transportProperties\n" << endl; |
Yes I just do it.
Then I would join electrostaticFoam with my_simpleFoam, so I'll modify createFieds.h and my_simpleFoam.c adding electrostaticFoam. It's correct? But can I impose different boundary condition on the same patch? Example: symmetryPlane for potential (for electric fields) and zeroGradient for U (Velocity fields) Thanks |
Yes, of course boundary conditions are separate for every field. Otherwise you'd have a tough time even simulating a lid driven cavity ;)
|
All times are GMT -4. The time now is 05:23. |