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

IcoUncoupledKinematicParcelFoam: getting sigsegv after adding particle

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Subhasree

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2015, 17:03
Default IcoUncoupledKinematicParcelFoam: getting sigsegv after adding particle
  #1
New Member
 
Subhasree
Join Date: Mar 2014
Location: IIT Bombay, India
Posts: 25
Rep Power: 12
Subhasree is on a distinguished road
Hi EveryOne,

I am working on a simple 3-D model to simulate particle flow through a rectangular domain. I have initially simulated it using laminar pisoFoam and no using its velocity field to simulate the particle flow.

But on running icoUncoupledKinematicParcelFoam, I am getting the following error. I have attached a snap-shot of the error. I am new for this solver and am unable to understand. Please help!
Attached Images
File Type: jpg particle flow error.jpg (108.0 KB, 21 views)
Subhasree is offline   Reply With Quote

Old   October 12, 2015, 15:55
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: "sigsegv" https://en.wikipedia.org/wiki/Segmentation_fault - is a segmentation fault due to a bad access to memory.

Can you please provide a test case?
__________________
wyldckat is offline   Reply With Quote

Old   November 17, 2015, 02:34
Default icoLagrangianFoam solver
  #3
New Member
 
Subhasree
Join Date: Mar 2014
Location: IIT Bombay, India
Posts: 25
Rep Power: 12
Subhasree is on a distinguished road
Thanks! I have solved that problem. Presently I am working on using a modified icoLagrangianFoam Solver. Actly I am using adjustable time step. After making all the required modifications as I am using wmake I am getting the following error:

/home/subhasree/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPISOControls.H:8:10: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
bool momentumPredictor =
^
/home/subhasree/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’ [-Wunused-variable]
bool transonic =
^
/home/subhasree/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
int nOuterCorr =
^
icoLagrangianFoam_new.dep:721: recipe for target 'Make/linux64GccDPOpt/icoLagrangianFoam_new.o' failed
make: *** [Make/linux64GccDPOpt/icoLagrangianFoam_new.o] Error 1

Can anybody please suggest how may I solve this problem?
Subhasree is offline   Reply With Quote

Old   November 17, 2015, 02:52
Default
  #4
Member
 
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 17
santoo_cfd is on a distinguished road
Can you post full error message. Your post only shows warnings and there is nothing to worry about above warnings about unused variables in my opinion.
santoo_cfd is offline   Reply With Quote

Old   November 17, 2015, 03:54
Default
  #5
New Member
 
Subhasree
Join Date: Mar 2014
Location: IIT Bombay, India
Posts: 25
Rep Power: 12
Subhasree is on a distinguished road
Please check the last 2 lines in the previous post:

icoLagrangianFoam_new.dep:721: recipe for target 'Make/linux64GccDPOpt/icoLagrangianFoam_new.o' failed
make: *** [Make/linux64GccDPOpt/icoLagrangianFoam_new.o] Error 1

after this the compilation stops in between. I am also attaching the files if required.
Attached Files
File Type: gz icoLagrangianFoam_new.tar.gz (6.6 KB, 7 views)
Subhasree is offline   Reply With Quote

Old   December 6, 2015, 15:10
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I've finally managed to take a quick look into this. The complete output from wmake was this:
Code:
Making dependency list for source file icoLagrangianFoam_new.C
SOURCE=icoLagrangianFoam_new.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/ofuser/foam/foam-extend-3.1/src/lagrangian/basic/lnInclude     -I/home/ofuser/foam/foam-extend-3.1/src/lagrangian/intermediate/lnInclude     -I/home/ofuser/foam/foam-extend-3.1/src/finiteVolume/lnInclude     -I/home/ofuser/foam/foam-extend-3.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/ofuser/foam/foam-extend-3.1/src/foam/lnInclude -I/home/ofuser/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/icoLagrangianFoam_new.o
icoLagrangianFoam_new.C: In function ‘int main(int, char**)’:
icoLagrangianFoam_new.C:53:20: error: no match for call to ‘(Foam::Time) ()’
/home/ofuser/foam/foam-extend-3.1/src/foam/lnInclude/Time.H:64:7: note: candidate is:
/home/ofuser/foam/foam-extend-3.1/src/foam/lnInclude/HashTableI.H:145:11: note: T& Foam::HashTable<T, Key, Hash>::operator()(const Key&) [with T = Foam::regIOobject*, Key = Foam::word, Hash = Foam::string::hash]
/home/ofuser/foam/foam-extend-3.1/src/foam/lnInclude/HashTableI.H:145:11: note:   candidate expects 1 argument, 0 provided
/home/ofuser/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPISOControls.H:8:10: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
/home/ofuser/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’ [-Wunused-variable]
/home/ofuser/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
make: *** [Make/linux64GccDPOpt/icoLagrangianFoam_new.o] Error 1
Therefore, the specific error is this:
Code:
icoLagrangianFoam_new.C:53:20: error: no match for call to ‘(Foam::Time) ()’
Where it refers to this line:
Code:
while (runTime())
If we look at the icoFoam solver source code in foam-extend 3.1:
Code:
while (runTime.loop())
And with this change, it now builds without problems.
wyldckat is offline   Reply With Quote

Old   December 8, 2015, 05:46
Smile
  #7
New Member
 
Subhasree
Join Date: Mar 2014
Location: IIT Bombay, India
Posts: 25
Rep Power: 12
Subhasree is on a distinguished road
Thanks a lot!!! It worked.
wyldckat likes this.
Subhasree 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
UDF for particle interception with pt_termination fortran routine abcdefgh CFX 6 October 6, 2019 13:30
Particle Interaction is CFX; Adding Interparticle Attraction such as Van Der Waals FrankS CFX 11 November 12, 2013 19:53
injection problem Mark New FLUENT 0 August 4, 2013 01:30
Adding extra compound to coal particle. anthony05 FLUENT 0 July 4, 2013 22:33
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 01:29


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