MRFSource no more available in OpenFOAM 4?
Hello,
in the past, when launching simpleFoam simulations with MRF, I used to write in the fvOptions file : Code:
MRF1 src/fvOptions/sources/derived/MRFSource/MRFSource.C but in OpenFOAM 4 is no more there. I would like to know what do you currently use to set an MRF source in OpenFOAM 4? |
Have a look at the tutorials. The relevant file is constant/MRFProperties.
|
Thank you very much Anton.
for future readers, I copy here an example from the tutorial: incompressible/simpleFoam/mixerVessel2D/constant/MRFProperties Origin, axis and omega of the MRF zone are now set in the constant/MRFProperties file: Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
I recently upgrade from OF 2.4, and now I am also having issues running a past model on OF 3.0. I am attempted to model a fluid region that has an impeller to increase the static pressure.
The model has two zones: c0 = impeller domain, c1 = everything else. The previous fvOptions file looked like: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Per the above, I attempted to run the following: Code:
/*--------------------------------*- C++ -*----------------------------------*\ When I examine my two different log files, I notice the following: OF 3.0: Code:
Creating MRF zone list from MRFProperties Code:
Creating finite volume options from "system/fvOptions" The model begins looking normal, but then suddenly crashes during the Omega ramping. I reviewed results just after the ramping, and the rotational velocity appears to correctly apply to only the impeller fluid domain. Just as the solution crashed, it appeared it was applying velocities to the entire domain. Any help is greatly appreciated! EDIT: Honing in on my results just as the solution crashes, I am able to see that a few elements where the pressure field goes unbounded (outside of the MRF zone). I assume this is likely an issue with internal solver controls slightly changing b/t the two OF versions, as I am utilizing the same mesh file for both runs. |
I am puzzled as to why the openfoam developers keep shoveling things around. To me this change adds no new functionality, only creates annoying compatibility issues that cost researchers precious time to fix.
|
All times are GMT -4. The time now is 08:43. |