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

Blog Entries

Register Blogs Members List Search Today's Posts Mark Forums Read

Old

could not open file ** for ** when compiling

Posted March 31, 2017 at 11:46 by kindle

if the problem is :
could not open file ** for xx due to No such file or directory. Maybe it's that after option -I you have a blank space before the INC directory.

Code:
-I$(LIB_USER_SRC)/viscoelasticFluidFoam-1.0-OpenFOAM-2.1.x/src/transportModels/viscoelastic/lnInclude
will do but
Code:
-I $(LIB_USER_SRC)/viscoelasticFluidFoam-1.0-OpenFOAM-2.1.x/src/transportModels/viscoelastic/lnInclude
may not.

Quote:
Originally Posted by Artur View Post
Hi,

I've just built OF 2.2.2 from
...
New Member
Views 76 Comments 0 kindle is offline Edit Tags
Old

Excellent tutorial for debugging

Posted March 10, 2017 at 12:50 by kindle

banana and old-school printing out.

Cool !

Quote:
Originally Posted by wyldckat View Post
OK, so as I mentioned in one of the posts above, having an example case as a basis and using the "banana" trick, here's what I've done (used OpenFOAM 2.3.x for this example):
  1. Made a copy of the tutorial "lagrangian/DPMFoam/Goldschmidt" and ran the utility blockMesh.
  2. Then I had to look at which file needed to modified. All pointed to the file "constant/kinematicCloudProperties".
  3. Now I had
...
New Member
Posted in programming
Views 828 Comments 0 kindle is offline Edit Tags
Old

printStack(Foam::Ostream& ) with simpleFoam -parallel

Posted March 10, 2017 at 05:55 by kindle
Updated June 7, 2017 at 12:15 by kindle

debug version will give line numbers. Ok. May worth the cost.

Quote:
Originally Posted by gschaider View Post
A bit more information would be nice:
- does this problem also occur when you run the case in serial
- when does it happen (during the construction of the turbulence model, but I deduced that from your stack-trace)
- line numbers would be nice, but you'll need a Debug-version of OF for that

My guess is that this is (again) the old "I set k/epsilon/omega to 0 in the initial conditions (or
...
New Member
Views 728 Comments 0 kindle is offline Edit Tags
Old

Floating point exception (resolved. problem in mesh quality)

Posted March 10, 2017 at 05:54 by kindle
Updated June 7, 2017 at 12:18 by kindle

Try to get this tracking process of problem

Quote:
Originally Posted by cristian.arbe View Post
Hello all,

I am relatively new to OpenFoam and I am trying to simulate a photoreactor on incompressible turbulent flow at steady-state. I copied most of the code of the pitzDaily model from the tutorials adjusting all the parametres for my case. When running the case in parallel I get the following error:

Code:
mpirun noticed that process rank 7 with PID 3333 on node XXXXX exited on signal 8 (Floating point exception).
Commands
...
New Member
Views 708 Comments 0 kindle is offline Edit Tags
Old

fvc - solvers/basic/

Posted March 2, 2017 at 05:16 by kindle

fvc can be used to calculate values using field data at the current time step.

// scalarTransportFoam

#include "CourantNo.H" :

scalarField sumPhi
(
fvc::surfaceSum(mag(phi))().internalField()//公式(2)
);//scalarField在OpenFOAM中为一系列scalar组成的场,其区别于volScalarF ield主要为不具有边界条件等信息...
New Member
Posted in programming
Views 1047 Comments 0 kindle is offline Edit Tags

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