|
[Sponsors] |
mappedVelocityFlux boundary condition correct implementation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 29, 2019, 10:10 |
mappedVelocityFlux boundary condition correct implementation
|
#1 |
New Member
Armin Alavi
Join Date: May 2019
Location: Tehran
Posts: 22
Rep Power: 6 |
hi all
I have been trying to use the mappedVelocityFlux B.C. to map the velocity from the neighbour mesh to the boundary which this condition is applied on. when i use the bellow format (exactly like what said on https://cpp.openfoam.org/v3/a01417.html melt_to_solid { type mappedVelocityFlux; phi phi; value uniform 0; } i get the following error: --> FOAM FATAL IO ERROR: Expected a '(' while reading VectorSpace<Form, Cmpt, Ncmpts>, found on line 43 the label 0 file: /home/armin/OpenFOAM/armin-6/run/Mytut/conjugateStoragezzCompressiblePorous/0/melt/U.boundaryField.melt_to_solid.value at line 43. From function Foam::Istream& Foam::Istream::readBegin(const char*) in file db/IOstreams/IOstreams/Istream.C at line 92. FOAM exiting I sense the above error is trying to tell me that i have to implement the "value" in vector type so i change my B.C. to the bellow form: melt_to_solid { type mappedVelocityFlux; phi phi; value uniform (0 0 0); } but this time a rather stranger error shows up: --> FOAM FATAL ERROR: hanging pointer at index 4 (size 4), cannot dereference From function T& Foam::UPtrList<T>:: operator[](Foam::label) [with T = Foam::fvsPatchField<double>; Foam::label = int] in file /home/ubuntu/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/UPtrListI.H at line 123. FOAM aborting #0 Foam::error:: printStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() at ??:? #2 Foam::mappedVelocityFluxFixedValueFvPatchField::up dateCoeffs() at ??:? #3 Foam::fvMatrix<Foam::Vector<double> >::fvMatrix(Foam::GeometricField<Foam::Vector<doub le>, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) in "/home/armin/OpenFOAM/armin-6/platforms/linux64GccDPInt32Opt/bin/chtMultiPorousCompInterFoam" #4 ? in "/home/armin/OpenFOAM/armin-6/platforms/linux64GccDPInt32Opt/bin/chtMultiPorousCompInterFoam" #5 ? in "/home/armin/OpenFOAM/armin-6/platforms/linux64GccDPInt32Opt/bin/chtMultiPorousCompInterFoam" #6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #7 ? in "/home/armin/OpenFOAM/armin-6/platforms/linux64GccDPInt32Opt/bin/chtMultiPorousCompInterFoam" Aborted (core dumped) Anyone has a clue what should I do? I would appreciate any guidance |
|
December 29, 2019, 16:21 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
I dont know about OF6, but are you sure that v3 syntax remained the same in v6, which seems to be you are using.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
December 30, 2019, 13:55 |
|
#3 |
New Member
Armin Alavi
Join Date: May 2019
Location: Tehran
Posts: 22
Rep Power: 6 |
Thank you very much for your response. I checked the source code for OF6. it seems that it's syntax has remained unchanged since then.
here is the source code https://github.com/OpenFOAM/OpenFOAM...FvPatchField.H |
|
December 30, 2019, 17:24 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
Hi,
Please look at .C file, which had several changes. Also, the correct syntax is for 'value' placeholder is 'value uniform 0;' Could you please check semi-columns/header file above-below of this part of the input?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error - Solar absorber - Solar Thermal Radiation | MichaelK | CFX | 12 | September 1, 2016 05:15 |
several fields modified by single boundary condition | schröder | OpenFOAM Programming & Development | 3 | April 21, 2015 05:09 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 00:00 |
vorticity boundary condition | bearcharge | Main CFD Forum | 0 | May 14, 2010 11:32 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 04:05 |