CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

movingConeTopo modifications

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2014, 16:20
Default movingConeTopo modifications
New Member
Marina Sierra-Sesumaga
Join Date: Nov 2014
Posts: 2
Rep Power: 0
MarinaSS88 is on a distinguished road

I'm trying to simulate a box moving on a fluid addig/removing mesh layers. But I am having several problems, as I am very beginner with openFoam.

I have started with the following tutorial:

I have noticed that the parameters in blockMeshDict are defined in mm. I would like to run a similar geometry but changing the parameters into meters and modifying the dimensions of the box that I want to move. The modifications I have performed are:
- Change convertToMeters in blockMeshDict into 1; and point coordinates (not a very big change, for example instead of -7.5, I have writen -10, but this time in meters).
- Change the mesh size so all the mesh cells have 1m x 1m x 1m dimensions.
- In dinamicMeshDict: have changed leftEdge, leftObstacleEdge and rightObstacleEdge to values corresponding to my geometry; and min and max thicknesses to 0.5 and 1.5 meters at both sides.

When I try to run this new case, openFoam keeps moving the box defined in the tutorial (where: leftObstacleEdge= -0.007 and rightObstacleEdge= -0.0035) and not the box that I have defined after modifying dinamicMeshDict. It seems that the program maintains the old values without refreshing them. Maybe I am missing to change this values in any other file when it is necessary? I thought that these parameters were only defined here? or maybe my computer has gone mad?? I always delete all the files generated in a case-running before running a new case, so I donīt know why new values are not considered by the program

Moreover, depending on the new points coordinates, sometimes when I run moveDynamicMesh I get the error:

Face extrusion zone contains no faces. Plese check your mesh definition.

Is there any rule that you have to follow to define dinamicMeshDict correctly depending on the geometry and the background mesh?

I would strongly appreciate if anybody could help me!

Many thanks in advance!!!!


Last edited by MarinaSS88; November 6, 2014 at 18:08.
MarinaSS88 is offline   Reply With Quote

Old   March 26, 2015, 06:27
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 7
alexB is on a distinguished road
Hi Marina,

tested movingConeTopo by myself, but also couldn't perform any great changes in the mesh.
I also checked the file movingConeTopoFvMesh.C in my folder /opt/openfoam230/src/topoChangerFvMesh/movingConeTopoFvMesh and noticed fixed values in the code.

            fc[faceI].x() > -0.003501
         && fc[faceI].x() < -0.003499
            fc[faceI].x() > -0.00701
         && fc[faceI].x() < -0.00699
Even when I changed them to the values in my blockmeshdict and ran the Allwmake script* in /opt/openfoam230/src/ , I still get the error "Face extrusion zone contains no faces..." .

Did you made any further progress by your problem?

*after spending several hours during the first run I wrote a reduced wmake script.
cd ${0%/*} || exit 1    # run from this directory

wmakeCheckPwd "$WM_PROJECT_DIR/src" || {
    echo "Error: Current directory is not \$WM_PROJECT_DIR/src"
    echo "    The environment variables are inconsistent with the installation."
    echo "    Check the OpenFOAM entries in your dot-files and source them."
    exit 1

[ -n "$FOAM_EXT_LIBBIN" ] || {
    echo "Error: FOAM_EXT_LIBBIN not set"
    echo "    Check the OpenFOAM entries in your dot-files and source them."
    exit 1

set -x

# update OpenFOAM version strings if required
wmakePrintBuild -check || /bin/rm -f OpenFOAM/Make/*/global.? 2>/dev/null

wmakeLnInclude OpenFOAM
wmakeLnInclude OSspecific/${WM_OSTYPE:-POSIX}
Pstream/Allwmake $*

OSspecific/${WM_OSTYPE:-POSIX}/Allwmake $*

wmake $makeType topoChangerFvMesh

# ----------------------------------------------------------------- end-of-file

alexB is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sin function generation with some modifications sunilpatil CFX 2 January 10, 2013 00:59
Questions about modifications of mixed boundary conditions fumiya OpenFOAM 1 September 14, 2012 13:50
MovingConeTopo 1.5-Dev pippi OpenFOAM 0 September 14, 2010 09:20
movingConeTopo tutorial from 1.5-dev crashes with Floating Point Exception jaswi OpenFOAM Running, Solving & CFD 2 April 26, 2009 11:21
Making modifications in GAMBIT Vidya Raja FLUENT 15 July 12, 2006 15:58

All times are GMT -4. The time now is 17:10.