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

Openfoam BC error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 17, 2019, 05:31
Post Openfoam BC error
  #1
New Member
 
chunliang
Join Date: Jul 2018
Posts: 2
Rep Power: 0
generalKEE is on a distinguished road
When I used my own written boundary conditions for calculations, I had a strange error. Could someone help me?
Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
                                                                                                 
                        
Create mesh for time = 0
                                                                                                 
                        
                                                                         
                        
PISO: Operating solver in PISO mode
                                                                                                 
                        
Reading transportProperties
                                                                                                 
                        
Reading field p
                                                                                                 
                         

Reading field U
                                                                                                  
                        
Reading field C
                                                                                                 
                        
Reading/calculating face flux field phi
                                                                                                 
                        
                                                                         
                        
Starting time loop
                                                                                                 
                        
Time = 5e-05
                                                                                                 
                        
Courant Number mean: 7.5e-05 max: 0.194817
                                                                                                smoothSolver:  Solving for Ux, Initial residual = 1, Final residual = 2.38974e-06, No Iterations 8
                                                                                                smoothSolver:  Solving for Uy, Initial residual = 0, Final residual = 0, No Iterations 0
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#4  Foam::operator/(Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#5  Foam::newFvPatchScalarField::updateCoeffs() at ??:?
#6  Foam::fvMatrix<double>::fvMatrix(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) at ??:?
#7  Foam::fv::gaussLaplacianScheme<double, Foam::SymmTensor<double> >::fvmLaplacianUncorrected(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#8  Foam::fv::gaussLaplacianScheme<double, double>::fvmLaplacian(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#9  ? at ??:?
 #10  ? at ??:?
#11  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"

#12  ? at ??:?
generalKEE is offline   Reply With Quote

Old   June 17, 2019, 08:13
Default
  #2
New Member
 
Join Date: Aug 2016
Posts: 19
Rep Power: 10
mtgoncalves is on a distinguished road
This line:

Code:
#1  Foam::sigFpe::sigHandler(int) at ??:?
indicates that an error occured related to floating-point arithmetics.

This line:

Code:
#3  Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
indicates that the error occured during the call to the function Foam::divide. Whether you called this function yourself or not you are facing a division error. You are probably dividing by 0 or by NaN. Make sure that you are not accidently dividing by zero. Check all the values of the variables by which you are dividing.
mtgoncalves is offline   Reply With Quote

Old   June 18, 2019, 06:59
Default another question
  #3
New Member
 
chunliang
Join Date: Jul 2018
Posts: 2
Rep Power: 0
generalKEE is on a distinguished road
thanks for your help. Today, i meet another problem



Code:
myicoFoam: symbol lookup error: /home/a/OpenFOAM/a-5.x/platforms/linux64GccDPInt32Opt/lib/libnewFvPatchScalarField.so: undefined symbol: _ZN4Foam21newFvPatchScalarFieldC1ERKNS_7fvPatchERKNS_16DimensionedFieldIdNS_7volMeshEEERKNS_10dictionaryE
generalKEE is offline   Reply With Quote

Old   June 18, 2019, 08:26
Default
  #4
New Member
 
Join Date: Aug 2016
Posts: 19
Rep Power: 10
mtgoncalves is on a distinguished road
Undefined symbol means that there is a type which is not defined. I see you have developed your own solver myicoFoam and your own library for a BC called newFvPatchScalarField. As the lib is being picked up during compiling but some symbol is unknown I suspect that maybe the header file is not being picked up. It is hard to tell without seeing your Make/files and Make/options files.
mtgoncalves is offline   Reply With Quote

Reply

Tags
boundary condition error


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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
long error when using make-install SU2_AD. tomp1993 SU2 Installation 3 March 17, 2018 07:25
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 10:40
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 10:30
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50


All times are GMT -4. The time now is 16:25.