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

kindle

Register Blogs Community New Posts Updated Threads Search

Old

access to data

Posted February 28, 2017 at 06:17 by kindle
Updated February 28, 2017 at 13:41 by kindle

// access to field<Type>

Ex: in /finiteVolume/fields/fvPatchField/derived/turbulentInlet.C.
This class is templated, here we take a example for vector field:

Code:
Field<vector> randomField(this->size());
to have access to x-component for example
Code:
Info << "randomField = " << randomField.component(vector::X) <<
    endl;
// vector::X=0 this enum equals to 0 as enum's
...
New Member
Posted in programming
Views 1084 Comments 0 kindle is offline Edit Tags
Old

typo error

Posted February 23, 2017 at 06:03 by kindle

Q : Get very nasty output in the log when running in parallel ?
A : may be forgot the "-parallel" flag on the command line.
E : In stead of
Code:
mpirun -np 16 icoFoam -parallel > log
you trust your memory and write
Code:
mpirun -np 16 icoFoam > log
Then you will directly get the time directories of the whole domaine and there will be no time directionary in processor*. And in log, it seems that multiple processes are writing at the same time....
New Member
Posted in Q&A
Views 1164 Comments 0 kindle is offline Edit Tags
Old

foam formation

Posted February 23, 2017 at 04:29 by kindle

When I heat the bowl to get warm milk, I got foam forming at the heating surface and the foam is staying at the inner surface after I drank all milk in it.
New Member
Posted in findings
Views 1107 Comments 0 kindle is offline Edit Tags
Old

How to solve this

Posted February 23, 2017 at 04:20 by kindle

Quote:
Originally Posted by dbxmcf View Post
Hi, all:

I intended to specify a volScalarField p with boundaryField and internal Field specified by another function call instead of read from case file on hard drive, e.g. cavity/0/p, and in the creatFields.H for icoFoam.C I found the p was constructed using the following:
//-------------------------------------
volScalarField p
(
IOobject
(
"p",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
...
New Member
Posted in programming
Views 985 Comments 0 kindle is offline Edit Tags
Old

How to solve this : openfoam define a zero value volscalarfield

Posted February 23, 2017 at 04:18 by kindle

Quote:
Originally Posted by LUIS1717 View Post
Hi everyone,

I'm trying to program a solver and its need a volscalarfield that initially must be zero everywhere in the mesh and I don't want to read it from any initial condition or to write it down. Anyone know how to do it?

thanks in advance Luis
ddddddddddddddddddddddddddddddddddddd
New Member
Posted in Pre-processing
Views 998 Comments 0 kindle is offline Edit Tags

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