CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Error in PimpleDyMFoam/propeller tutorial (https://www.cfd-online.com/Forums/openfoam/131659-error-pimpledymfoam-propeller-tutorial.html)

monty86 March 19, 2014 00:33

Error in PimpleDyMFoam/propeller tutorial
 
Dear all,
I am new user of OpenFoam. While going through the tutorials, i am facing error in propeller tutorial. I followed the Allrun.pre commands. but one of the following command showing the error. Please help me out.
here is the error message. i don't understand where is the log.topoSet file

root@PU-LT-0037:/opt/openfoam220/tutorials/incompressible/pimpleDyMFoam/propeller# topoSet -dict system/removeRedundantZones.topoSetDict
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.0-5be49240882f
Exec : topoSet -dict system/removeRedundantZones.topoSetDict
Date : Mar 19 2014
Time : 10:30:03
Host : "PU-LT-0037"
PID : 3366
Case : /opt/openfoam220/tutorials/incompressible/pimpleDyMFoam/propeller
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0

Reading topoSetDict

Time = 0
mesh not changed.
Removing set
Removing zone innerCylinder at index 0
Removing set
Removing zone innerCylinderSmall at index 0

End

root@PU-LT-0037:/opt/openfoam220/tutorials/incompressible/pimpleDyMFoam/propeller# mv log.topoSet log.removeRedundantZones.topoSet
mv: cannot stat `log.topoSet': No such file or directory
root@PU-LT-0037:/opt/openfoam220/tutorials/incompressible/pimpleDyMFoam/propeller# ^C

wyldckat March 19, 2014 16:40

Quick answer: Since you're not following at 100% the lines in the scripts, that means that there are no log files created, therefore it doesn't make much sense to move a file that was never created in the first place.

If you're new to using a shell and looking at scripts like these, I suggest that you study this page and the links suggested there: http://openfoamwiki.net/index.php/In...with_the_Shell ;)

monty86 March 21, 2014 01:50

Dear sir,
Yes i am very new to OpenFoam & Linux.
For getting in to this i am going through the tutorials that are given in openFoam.
I am going through the Shell documents as you mentioned.
Simultaneously when i run propeller tutorial again with following command.
I got Foam Fatal error.

In command terminal i added following commands.

./Allrun.pre
./Allrun
After running this when i open paraFoam, it suddenly closed when i select apply button in paraFoam & i got following warning in terminal.

root@PU-LT-0037:~/OpenFOAM/root-2.2.0/run/tutorials/incompressible/pimpleDyMFoam/propeller# paraFoam
created temporary 'propeller.OpenFOAM'


--> FOAM FATAL IO ERROR:
Cannot find patchField entry for AMI1

file: /root/OpenFOAM/root-2.2.0/run/tutorials/incompressible/pimpleDyMFoam/propeller/0/p.boundaryField from line 26 to line 42.

From function GeometricField<Type, PatchField, GeoMesh>::GeometricBoundaryField::readField(const DimensionedField<Type, GeoMesh>&, const dictionary&)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 154.

FOAM exiting

Segmentation fault (core dumped)

when i see p file from 0 directory AMI patch is not mentioned there.
Frankly speaking i am very new to OpenFoam & dont have any idea about how to add patches. How i can run this tutorial?

Please help me out as this is my learning stage.

__________________________
[Moderator note: Moved this post + merged with a similar one already here, as well as moved Artur's answer from the thread http://www.cfd-online.com/Forums/ope...beginer-2.html to here]

Artur March 21, 2014 04:35

Unless you changed the tutorial files executing just the Allrun script should do everything that you need (note that it does execute the Allrun.pre itself, no need to do it manually yourself).

You're right in your conclusion that it's the problem with AMI boundary condition. However, I just ran the same tutorial on my machine and the AMI BC's have been created as required by the createBaffles utility. Perhaps you should try cleaning your case and running just the Allrun script? My feeling is that somehow you have overwritten the patch entries created by the createBaffles and that's why they are not there. Another option is to add the following to your boundary files:

Code:

AMI1
    {
        type            cyclicAMI;
        value          uniform (0 0 0);
    }
    AMI2
    {
        type            cyclicAMI;
        value          uniform (0 0 0);
    }

replacing (0 0 0) with 0 for scalars.

All the best,

A

wyldckat March 23, 2014 16:41

Greetings to all!

@monty86: To complement Artur's answer:
Running as "root" is a very bad idea, because you're risking damaging the installation of the operating system and not being able to log in next time you reboot the machine.
The specific risk is that you might accidentally perform a deletion of files that are critical to the system, instead of only removing the files and folders you wanted to remove.

Best regards,
Bruno

bmaldi May 13, 2016 05:21

Quote:

Originally Posted by Artur (Post 481249)
Unless you changed the tutorial files executing just the Allrun script should do everything that you need (note that it does execute the Allrun.pre itself, no need to do it manually yourself).

You're right in your conclusion that it's the problem with AMI boundary condition. However, I just ran the same tutorial on my machine and the AMI BC's have been created as required by the createBaffles utility. Perhaps you should try cleaning your case and running just the Allrun script? My feeling is that somehow you have overwritten the patch entries created by the createBaffles and that's why they are not there. Another option is to add the following to your boundary files:

Code:

AMI1
    {
        type            cyclicAMI;
        value          uniform (0 0 0);
    }
    AMI2
    {
        type            cyclicAMI;
        value          uniform (0 0 0);
    }

replacing (0 0 0) with 0 for scalars.

All the best,

A

hello brother,.
i already did at all,. for the tutorial just done and i got the result,.
but when i was trying to change the propeller geometry, and change also the boundary, after that i couldn't run and it was stopped, may could you give the tutorial or steps how to simulate propeller in openfoam? please need your helps, :(
best regards,
Aldi


All times are GMT -4. The time now is 08:04.