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

programming

Register Blogs Community New Posts Updated Threads Search

programming
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 1003 Comments 0 kindle is offline Edit Tags
Old

non-uniform boundray condition - solution parabolicVelocityFvPatchV ectorField

Posted February 23, 2017 at 04:16 by kindle
Updated June 7, 2017 at 13:19 by kindle

From

http://www.tfd.chalmers.se/~hani/kur...yCondition.pdf

https://sourceforge.net/p/openfoam-e...bolicVelocity/

Compile the shared object (library) and add
Quote:
libs ("libmyBCs.so");
to system/controlDict

it will be linked ONLY at run time by LD_LIBRARY_PATH. It is linked using...
New Member
Posted in programming
Views 652 Comments 0 kindle is offline Edit Tags
Old

divDevRhoReff and divDevReff

Posted January 6, 2017 at 07:12 by kindle
Updated February 23, 2017 at 04:02 by kindle

There is a post of Tobi's eq-code explanation on viscous stress.

In incompressible flow, beside normal stress (taken out as p*I), the viscous part is only a function of deviate part of grad(U) (or its transpose).

In "SymmTensorI.H"
there are tow functions for deviate part of a tensor as explained by Tobi : dev and dev2

320 //- Return the deviatoric part of a symmetric tensor
321 template<class Cmpt>
322 inline SymmTensor<Cmpt>...
New Member
Posted in programming
Views 1838 Comments 0 kindle is offline Edit Tags
Old

tmp - stands for 'true macro pain'?

Posted December 5, 2016 at 12:50 by kindle
Updated February 23, 2017 at 04:03 by kindle

use when ready

Quote:
Originally Posted by hjasak View Post
Well, put on your 1970-s hat (or a shirt with huge collars!) and let's talk about memory peaks. For simpleFoam, the memory peak is at the point of creation of the pressure equation, because, unlike PISO, I am allowed to delete the momentum matrix before the creation of the pressure matrix. Therefore, I make the momentum matrix a tmp and call UEqn.clear(); at an opportune place in the code and drop the peak memory requirement by one complete assymetric matrix!
...
New Member
Posted in programming
Views 729 Comments 0 kindle is offline Edit Tags
Old

Customized fvOptions-class for momentum source: no rule to make target

Posted November 10, 2016 at 13:00 by kindle
Updated February 23, 2017 at 04:06 by kindle

Another one

Quote:
Originally Posted by potentialFoam View Post
Dear Foamers,

I would like to create my own fvOptions-class to introduce a momentum source term. (Unfortunately, none of the existing classes help me.)

Approach:
I copied the 'actuationDiskSource'-folder,
I renamed the files and names inside from 'actuationDisk...' to 'newSource...',
I added the 'newSource.C'-file in '$FOAM_SRC/fvOptions/Make/files',
then I tried to compile it with 'wmake' and 'wmake libso'.
...
New Member
Posted in programming
Views 964 Comments 0 kindle is offline Edit Tags

All times are GMT -4. The time now is 04:19.