CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Unable to find cellZone using solidBodyMotionFunction (https://www.cfd-online.com/Forums/openfoam-pre-processing/226164-unable-find-cellzone-using-solidbodymotionfunction.html)

quarkz April 19, 2020 10:52

Unable to find cellZone using solidBodyMotionFunction
 
Hi,

I tried to modify the wingMotion2D tutorial, changing from sixDoFRigidBodyMotion to solidBodyMotionFunction because I want to simulate a pitching airfoil:

Code:

dynamicFvMesh      dynamicMotionSolverFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");

motionSolver solidBody;

cellZone        wing;

solidBodyMotionFunction  rotatingMotion;
 
rotatingMotionCoeffs
        {
        origin (0.25 0.007 0.125);
        axis (0 0 1);
        omega 6.2832;
        }

However, I got the error:

Unable to find cellZone wing. Valid cellZones are:0()

Why is this so? I searched and it seems that I need to create a set file using setSet or topoSet? But how is it done? Can someone enlighten me?

Thanks.


All times are GMT -4. The time now is 02:23.