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

fvc::grad(U) failing in parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2021, 05:20
Default fvc::grad(U) failing in parallel
  #1
New Member
 
Wael Itani
Join Date: Mar 2021
Posts: 2
Rep Power: 0
waelitani is on a distinguished road
I have a custom boundary condition which computes the gradient of the velocity field to compute its value. It works fine in serial run. However, it fails in parallel.

uName = this->internalField().name();
const volVectorField& U = db().lookupObject<volVectorField>(uName);
volTensorField gradU = fvc::grad(U);

When the last line is commented it runs fine. Otherwise, it gives the below error. U.size() shows the correct number of cells for the processor.

[0] From const T& Foam::UPtrList<T>:perator[](Foam::label) const [with T = Foam::fvPatchField<Foam::Vector<double> >; Foam::label = int]
[0] in file /home/user/openfoam/BuildEnv/debian-build/focal-2012.latest/scratch/src/OpenFOAM/lnInclude/UPtrListI.H at line 218.
[0]
FOAM parallel run aborting
[0]
[0] #0 Foam::error:rintStack(Foam::Ostream&)[1]
[1]
[1] --> FOAM FATAL ERROR: (openfoam-2012)
[1] Cannot dereference nullptr at index 0 in range [0,12)
[1]
[1]
[1] From const T& Foam::UPtrList<T>:perator[](Foam::label) const [with T = Foam::fvPatchField<Foam::Vector<double> >; Foam::label = int]
[1] in file /home/user/openfoam/BuildEnv/debian-build/focal-2012.latest/scratch/src/OpenFOAM/lnInclude/UPtrListI.H at line 218.
[1]
FOAM parallel run aborting
[1]
[1] #0 Foam::error:rintStack(Foam::Ostream&)[LAPTOP-U0DBOLPO:28182] 1 more process has sent help message help-mpi-api.txt / mpi-abort
[LAPTOP-U0DBOLPO:28182] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
./runThis.sh: line 5: recomposePar: command not found
waelitani is offline   Reply With Quote

Reply

Tags
boundary, bug, grad, programming


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
[ANSYS Meshing] Parallel meshing utilisation failing crc1622 ANSYS Meshing & Geometry 0 February 14, 2019 02:42
Error running openfoam in parallel fede32 OpenFOAM Programming & Development 5 October 4, 2018 16:38
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
[mesh manipulation] multiple calls to refineMesh parallel w/ dict failing Regis_ OpenFOAM Meshing & Mesh Conversion 2 June 4, 2015 13:44


All times are GMT -4. The time now is 21:01.