CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Problem with mapFieldsDict (http://www.cfd-online.com/Forums/openfoam/108675-problem-mapfieldsdict.html)

samiam1000 October 30, 2012 05:56

Problem with mapFieldsDict
 
Dear All,

I have a problem with mapFieldsDict.

This is my dictionary:

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  1.7.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.com                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    location    "system";
    object      mapFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

patchMap       
(
    wall-part_2-solid wall-part_2-solid
    wall_roof_channel wall_roof_channel
    back back
    floor floor
    hc_ii hc_ii
    inlet_main inlet_main
    intake intake
    intake_ii intake_ii
    lato_interno_1 lato_interno_1
    lato_interno_2 lato_interno_2
    roof roof
    symmetry_ext_1 symmetry_ext_1
    symmetry_ext_2 symmetry_ext_2
    wall_infinite wall_infinite
        door door
);

cuttingPatches 
(
   
);


// ************************************************************************* //

The problem is that in this way when I write

Code:

mapFields -sourceTime 10000 ../../steady/steady2D/
I get this:
Code:

rduser@slnxepmi05:/OPENFOAM/cases/moving_door_def_flow/test/opening/disappearing2D$ mapFields -sourceTime 10000 ../../steady/steady2D/
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.1.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.1.0-0bc225064152
Exec  : mapFields -sourceTime 10000 ../../steady/steady2D/
Date  : Oct 30 2012
Time  : 10:57:44
Host  : "slnxepmi05"
PID    : 22716
Case  : /OPENFOAM/cases/moving_door_def_flow/test/opening/disappearing2D
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

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Source: "../../steady/steady2D" ""
Target: "/OPENFOAM/cases/moving_door_def_flow/test/opening" "disappearing2D"

Create databases as time

Source time: 10000
Target time: 0
Create meshes

Source mesh size: 119473        Target mesh size: 119473


Mapping fields for time 10000


End

and nothing happens, while if I write
Code:

mapFields -consistent -sourceTime 10000 ../../steady/steady2D/
without the mapFieldsDict, it works.

The problem is that I need the 1st way, since I'd like to remove the patch ``door''.

What's wrong with my dictionary?

Thanks a lot,

Samuele

openfoammaofnepo November 14, 2013 08:26

Dear samiam1000,

I had the same problem about the mapping the results between different geometries. Actually most of the parts are the same but I just changed one of the BC. When I did the mapFields, it gave me nothing in my target folder. Could you please tell me how did you solve this problem in your case? Thank you.

Quote:

Originally Posted by samiam1000 (Post 389253)
Dear All,

I have a problem with mapFieldsDict.

This is my dictionary:

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  1.7.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.com                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    location    "system";
    object      mapFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

patchMap       
(
    wall-part_2-solid wall-part_2-solid
    wall_roof_channel wall_roof_channel
    back back
    floor floor
    hc_ii hc_ii
    inlet_main inlet_main
    intake intake
    intake_ii intake_ii
    lato_interno_1 lato_interno_1
    lato_interno_2 lato_interno_2
    roof roof
    symmetry_ext_1 symmetry_ext_1
    symmetry_ext_2 symmetry_ext_2
    wall_infinite wall_infinite
        door door
);

cuttingPatches 
(
   
);


// ************************************************************************* //

The problem is that in this way when I write

Code:

mapFields -sourceTime 10000 ../../steady/steady2D/
I get this:
Code:

rduser@slnxepmi05:/OPENFOAM/cases/moving_door_def_flow/test/opening/disappearing2D$ mapFields -sourceTime 10000 ../../steady/steady2D/
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.1.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.1.0-0bc225064152
Exec  : mapFields -sourceTime 10000 ../../steady/steady2D/
Date  : Oct 30 2012
Time  : 10:57:44
Host  : "slnxepmi05"
PID    : 22716
Case  : /OPENFOAM/cases/moving_door_def_flow/test/opening/disappearing2D
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

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Source: "../../steady/steady2D" ""
Target: "/OPENFOAM/cases/moving_door_def_flow/test/opening" "disappearing2D"

Create databases as time

Source time: 10000
Target time: 0
Create meshes

Source mesh size: 119473        Target mesh size: 119473


Mapping fields for time 10000


End

and nothing happens, while if I write
Code:

mapFields -consistent -sourceTime 10000 ../../steady/steady2D/
without the mapFieldsDict, it works.

The problem is that I need the 1st way, since I'd like to remove the patch ``door''.

What's wrong with my dictionary?

Thanks a lot,

Samuele



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