CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

Set zone for impose

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

Reply
 
LinkBack Thread Tools 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: 2
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,518
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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: 2
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, 3 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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,518
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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: Multiple regions with a porous zone - 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

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Fluent3DMeshToFoam simvun OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 48 May 14, 2012 06:20
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 23:57.