CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

mappedVelocityFlux boundary condition correct implementation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By HPE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 29, 2019, 10:10
Default mappedVelocityFlux boundary condition correct implementation
  #1
New Member
 
Armin Alavi
Join Date: May 2019
Location: Tehran
Posts: 22
Rep Power: 6
ArminAlavi is on a distinguished road
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
ArminAlavi is offline   Reply With Quote

Old   December 29, 2019, 16:21
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
I dont know about OF6, but are you sure that v3 syntax remained the same in v6, which seems to be you are using.
ArminAlavi likes this.
HPE is offline   Reply With Quote

Old   December 30, 2019, 13:55
Default
  #3
New Member
 
Armin Alavi
Join Date: May 2019
Location: Tehran
Posts: 22
Rep Power: 6
ArminAlavi is on a distinguished road
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
ArminAlavi is offline   Reply With Quote

Old   December 30, 2019, 17:24
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
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?
HPE is offline   Reply With Quote

Reply


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


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


All times are GMT -4. The time now is 05:53.