unicfdlab / libAcoustics

libAcoustics - OpenFOAM library for far-field noise computation
140 stars 57 forks source link

problem using v1912 version #42

Closed chancesFOAM closed 3 years ago

chancesFOAM commented 4 years ago

I use the newest version 1912 and trying a incompressible turbulence cylinder case. First, I use the curleControl file but it reads "Entry 'patches' not found in dictionary". Then I use the fwhControl file, but it says "rho cannot found", because there is inheriently no rho file in a incompressible case. I tried "another" fwhControl file from the version 3.0, it can run but there is no output of fft file. However, I noticed that other cases in the tutorials have no rho file, either. I don't know how to do. I attach my file so that you might check. THANKS! cylinder2D.zip

unicfdlab commented 4 years ago

in the fwhControl file:

rho rhoInf; rhoInf 1.2;

Delete also rhoName and rhoRef -- they obsolete

unicfdlab commented 4 years ago

in the fwhControl file:

rho rhoInf; rhoInf 1.2;

Delete also rhoName and rhoRef -- they obsolete

The same rules act for curleControl

chancesFOAM commented 4 years ago

yeah I have deleted them. Nevertheless, I still error: Entry 'rhoInf' not found in dictionary ...

unicfdlab commented 4 years ago

yeah I have deleted them. Nevertheless, I still error: Entry 'rhoInf' not found in dictionary ...

Then add rhoInf entry

chancesFOAM commented 4 years ago

Then it said “request for volScalarField rho from objectRegistry” it's so werid that other cases like monopole2D can run...

unicfdlab commented 4 years ago

add

rho rhoInf;

chancesFOAM commented 4 years ago

Ok, i make it. THANKS!