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

Error in reconstructPar using externalCoupled BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2017, 03:31
Default Error in reconstructPar using externalCoupled BC
  #1
New Member
 
Join Date: Jul 2009
Location: Aachen, Germany
Posts: 8
Rep Power: 17
PHabib is on a distinguished road
Hello everyone,

I'm getting an error using reconstructPar. The decomposing works without problems, but reconstructing the volVectorField U leads to an error. I am using OF 2.3 and the Boundary condition "externalCoupled" for U.
Does anyone now how to handle this error? any help will be much appreciated.
Here is the error output:

command:
Code:
reconstructPar -fields '(U)'
Code:
Create time



Reconstructing fields for mesh region0

Time = 0.0001

Reconstructing FV fields

    Reconstructing volScalarFields


    Reconstructing volVectorFields

        U
externalCoupled: removing lock file
#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigSegv::sigHandler(int) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2   in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::externalCoupledMixedFvPatchField<Foam::Vector<double> >::baseDir() const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#4  Foam::externalCoupledMixedFvPatchField<Foam::Vector<double> >::removeLockFile() const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#5  Foam::externalCoupledMixedFvPatchField<Foam::Vector<double> >::~externalCoupledMixedFvPatchField() in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#6  Foam::externalCoupledMixedFvPatchField<Foam::Vector<double> >::~externalCoupledMixedFvPatchField() in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#7  
 in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/reconstructPar"
#8  
 in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/reconstructPar"
#9  
 in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/reconstructPar"
#10  
 in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/reconstructPar"
#11  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#12  
 in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/reconstructPar"
Segmentation fault (core dumped)
PHabib is offline   Reply With Quote

Old   April 25, 2019, 12:07
Default
  #2
New Member
 
Join Date: Dec 2016
Posts: 24
Rep Power: 9
Dozer_94 is on a distinguished road
Hi there,

I'm sorry, I don't have an answer to your problem. I am interested however in how you wrote your data input file for the externalCoupled boundary condition for the velocity.

I know that for a scalar field like Temperature it should look like this:

<value1> <gradient1> <valueFraction1>

Could you show me what format is to be used for a vector field like Velocity? I have had no luck digging through the source code...
Dozer_94 is offline   Reply With Quote

Old   May 7, 2019, 04:59
Default
  #3
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 373
Rep Power: 11
Gerry Kan is on a distinguished road
Dozer:

Here is the supposed format for externalCoupled for velocities, also by PHabib (response #4).

VectorSpace cmpt

Hope this helps, Gerry.
Gerry Kan is offline   Reply With Quote

Old   May 7, 2019, 05:28
Default
  #4
New Member
 
Join Date: Dec 2016
Posts: 24
Rep Power: 9
Dozer_94 is on a distinguished road
Gerry,

Great, thanks! Don't know why I couldn't find this thread.
Dozer_94 is offline   Reply With Quote

Old   August 22, 2019, 04:23
Default
  #5
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 373
Rep Power: 11
Gerry Kan is on a distinguished road
Hallo PHabib:

I don't know if you have solved the problem already. I encountered the same problem with externalCoupled as well.

Upon looking into the offending function
Code:
template<class Type>
Foam::externalCoupledMixedFvPatchField<Type>::
~externalCoupledMixedFvPatchField()
{    removeLockFile();    }
and the corresponding function it calls

Code:
template<class Type>
void Foam::externalCoupledMixedFvPatchField<Type>::removeLockFile() const
{
    if (!master_ || !Pstream::master())
    {    return;    }

    if (log_)
    {    Info<< type() << ": removing lock file" << endl;    }

    rm(lockFile());
}
I realize it is asking the head node to remove the lock file.

In my case I modified the the externalCoupled BC so that the lock file never gets created, and the same error you had with reconstructPar appeared. The call to removeLockFile() was then commented out from the destructor and reconstructPar worked fine again.

It could be that the file OpenFOAM.lock was removed between the end of your run and calling reconstructPar. If this is true, the solution would either be preventing this file from being erased, or recreating it prior to calling reconstructPar.

Let me know if you have solved your problem, and how, if your solution is different.

Gerry.
Gerry Kan is offline   Reply With Quote

Reply

Tags
error, externalcoupled, reconstructpar


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
externalCoupled BC/function object without patch jbcourt OpenFOAM Running, Solving & CFD 0 March 30, 2017 06:29
reconstructPar does not work in interDyMFoam ageorg OpenFOAM Post-Processing 4 April 15, 2016 14:25
reconstructPar nor working Priya Somasundaran OpenFOAM Post-Processing 2 January 28, 2016 15:37
reconstructPar and a high number of snapshots fs82 OpenFOAM Programming & Development 2 April 18, 2012 05:37
Problem with reconstructPar fabianpk OpenFOAM 5 August 14, 2007 10:17


All times are GMT -4. The time now is 20:46.