|
[Sponsors] |
Problem in fvMesh.C when using topological changes. OpenFoam 2-2-x |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 14, 2013, 12:57 |
Problem in fvMesh.C when using topological changes. OpenFoam 2-2-x
|
#1 |
New Member
Join Date: May 2013
Location: Santa Fé, Argentina
Posts: 5
Rep Power: 13 |
Hi All,
I have the following problem when I run cases with topological changes on the mesh (I have implemented a layering strategy which uses the layerAdditionRemoval class). OpenFoam Version: 2.2.0 File: fvMesh.C Method: mapFields(const mapPolyMesh& meshMap) When mapping the old cells volume ,(just mapping to new cell labels), (fvMesh.C:562) Code:
if (V0Ptr_) { scalarField& V0 = *V0Ptr_; scalarField savedV0(V0); V0.setSize(nCells()); forAll(V0, i) { if (cellMap[i] > -1) { V0[i] = savedV0[cellMap[i]]; } else { V0[i] = 0.0; } } } Code:
MapDimensionedFields<scalar, fvMeshMapper, volMesh>(mapper); Code:
V0[i] = savedV0[cellMap[i]]; I have seen that in the previous OpenFOAM version 2.0-x, the MapDimensionedFields was not use in fvMesh.C. But, after OpenFoam version 2.1-x the MapDimensionedFields were added. The cases run without problems when i comment either the line (fvMesh.C:550) or the group after (fvMesh.C:562). Is the "mapping", that is done from (fvMesh.C:562), no more necessary when the MapDimensionedFields is used before? Thanks, Horacio. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
To solve combustion problem in openFoam | yash.aesi | OpenFOAM | 0 | July 10, 2013 08:35 |
compiler problem with OpenFOAM installation | belkadi | OpenFOAM Installation | 4 | May 22, 2013 11:26 |
[OpenFOAM] Color display problem to view OpenFOAM results. | Sargam05 | ParaView | 16 | May 11, 2013 01:10 |
Problem with mpirun with OpenFOAM | jiejie | OpenFOAM | 3 | July 7, 2010 20:30 |
OpenFOAM 1.6 CreatePatch Problem | TarifaPirata | OpenFOAM Bugs | 1 | September 10, 2009 05:35 |