CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Set zone for impose

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2014, 10:25
Default Set zone for impose
  #1
New Member
 
Lala Sasa
Join Date: Jun 2014
Posts: 16
Rep Power: 12
ChukerSweet is on a distinguished road
Hi guys!
Small question here. I'm trying to impose a velocity field in a specific part of a doman, but I seam not able to specify the zone in which the fvOption should apply.

Zone Declaration:
Code:
actions
(
    {
        name    Bomba;
        type    cellZone;
        action  new;
        source  boxToCellZone;
        sourceInfo
        {
            box (0.5 0.5 0.1) (0 0 0);
        }
    }
);
Condition in Zone
Code:
momentumSource
{
    type            pressureGradientExplicitSource;
    active          on;            //on/off switch
    selectionMode   cellZone;       //cellSet // points //cellZone
    cellZone        Bomba;

    pressureGradientExplicitSourceCoeffs
    {
        fieldNames  (U);
        Ubar        ( 2 0 0 );
    }
}
But nothing happens! the domain is
Code:
vertices
(
    (0 0 0)
    (1 0 0)
    (1 1 0)
    (0 1 0)
    (0 0 0.1)
    (1 0 0.1)
    (1 1 0.1)
    (0 1 0.1)
);
I don't even get an error of some sort. I'm not sure though how the box command with the (x1 y1 z1) (x2 y2 z2) acctualy works but if I could get this thing working at some level I could figure that out....As always any help is most welcome.

Last edited by ChukerSweet; June 23, 2014 at 14:55. Reason: new info, refrase
ChukerSweet is offline   Reply With Quote

Old   June 28, 2014, 17:01
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick questions:
  1. What commands are you running for the zone to be created?
  2. Where did you find the example for creating the zone?
wyldckat is offline   Reply With Quote

Old   July 2, 2014, 08:32
Default
  #3
New Member
 
Lala Sasa
Join Date: Jun 2014
Posts: 16
Rep Power: 12
ChukerSweet is on a distinguished road
Hi wyldkat!
The thing is not working, like at alll, so there might be quite a few thing wrong with the build I'm trying to pull out.
The two examples I got "inspired" by are the:

tutorials/incompressible/pimpleFoam/channel395/system/fvOptions
This used the function " pressureGradientExplicitSource" which I think is a good way of dealing with a simulation of a pump in a closed loop ( please correct me if I'm wrong there ). But in that example the DeltaP is impose all over the place.

So in the example in:
tutorials/multiphase/cavitatingFoam/ras/throttle/system
There is clearly a zone declaration under the topoSetFile

In the attachment you can see my attempt to setting things up. You might notice that there is no modification in the controlDict file, since I haven't find the way to say to openFoam "Hey there is a zone over there, and it has some propertys"
The "easy" example I'm trying to adapt is the cavity run with pisoFoam.

If you could help me I would be quite grateful
Attached Files
File Type: txt controlDict.txt (1.2 KB, 0 views)
File Type: txt fvOptions.txt (1.2 KB, 0 views)
File Type: txt topoSetDict.txt (1.1 KB, 4 views)
File Type: txt fvSchemes.txt (1.5 KB, 0 views)
File Type: txt fvSolution.txt (1.5 KB, 0 views)
ChukerSweet is offline   Reply With Quote

Old   August 17, 2014, 12:39
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi ChukerSweet,

Unfortunately only today did I manage to take a very quick look into this and unfortunately I don't have enough time to study the files you've shared
In addition, I don't know if you've already solved this issue or not, but if you haven't, I've remembered an example case I made sometime ago that uses blockMesh + snappyHexMesh: http://www.cfd-online.com/Forums/ope...tml#post408279 - post #5

Beyond this, have a look at the tips given on this wiki page: http://openfoamwiki.net/index.php/SnappyHexMesh

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 1, 2015, 05:27
Default
  #5
Senior Member
 
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 14
Eloise is on a distinguished road
Hi ChukerSweet,
Have you solved your problem? If so, could you please describe your approach?
Thanks!
Eloïse
Eloise is offline   Reply With Quote

Reply


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
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 16:33
[Gmsh] gmsh/OpenFOAM/bad zone names latvietis OpenFOAM Meshing & Mesh Conversion 1 August 30, 2013 19:16
Porosity profile, dividing a zone, or getting zone location from zone khoopes FLUENT 0 June 2, 2012 20:39
set zone in interDyMFoam (OF1.5-dev). how to? DLC Main CFD Forum 0 November 25, 2009 11:53
Fluent incident radiation problem Michael Schwarz Main CFD Forum 0 October 21, 1999 06:56


All times are GMT -4. The time now is 03:12.