|
[Sponsors] |
October 21, 2020, 13:37 |
creating patch with surfacetopatch
|
#1 |
New Member
David
Join Date: Oct 2020
Posts: 21
Rep Power: 6 |
Hi everyone
I have a stl file with different faces where I would like to change the temperature of some selected faces. To achieve that I have selected this faces and copied them in the heating.stl file, while they are still present in the original and the coordinates are preserved. I tried to run surfacetopatch but got the following error while running the solver: Code:
[0] [0] [0] --> FOAM FATAL IO ERROR: [0] No PatchFunction1 dictionary entry: d [0] [0] [0] file: /mnt/c/Users/david/Desktop/working_cases/work/david_new_stl_patch/processor0/0/U.boundaryField.inlet at line 27 to 34. [0] [0] From static Foam::autoPtr<Foam::PatchFunction1<Type> > Foam::PatchFunction1<Type>::New(const Foam::polyPatch&, const Foam::word&, const Foam::dictionary&, bool) [with Type = double] [0] in file /home/pawan/OpenFOAM/OpenFOAM-v2006/src/meshTools/lnInclude/PatchFunction1New.C at line 45. [0] FOAM parallel run exiting
And when I replace the entire polymesh folder with new one, which was generated from surfaceTopatch at the Directory 1/polyMesh, I get the following error while running decomposePar: Code:
--> FOAM FATAL IO ERROR: Cannot find patchField entry for heating file: /mnt/c/Users/david/Desktop/working_cases/work/david_new_stl_patch/0/cellLevel.boundaryField at line 27 to 39. From void Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::readField(const Foam::DimensionedField<TypeR, GeoMesh>&, const Foam::dictionary&) [with Type = double; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh] in file /home/pawan/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 172. FOAM exiting What do I have to change? Thanks in advance Best Regards fidu |
|
November 2, 2020, 05:35 |
|
#2 |
New Member
David
Join Date: Oct 2020
Posts: 21
Rep Power: 6 |
I found the solutions.I just had to remove 0/cellLevel 0/pointLevel after running snappyHexmesh and change the patch type of constant/polymesh/bountary.T to wall instead of patch.
Best David |
|
Tags |
boundary condition, patch, pre-proccessing, surfacetopatch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cyclic Boundary Condition | Luiz Eduardo Bittencourt Sampaio (Sampaio) | OpenFOAM Running, Solving & CFD | 36 | July 2, 2012 13:23 |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 18:51 |
CheckMeshbs errors | ivanyao | OpenFOAM Running, Solving & CFD | 2 | March 11, 2009 03:34 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |