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

programming

Register Blogs Community New Posts Updated Threads Search

programming
Old

relations between master and slave boundary condtions

Posted July 7, 2017 at 04:16 by kindle

Mapped boudnary condition?


Quote:
Originally Posted by wyldckat View Post
Hi Vimal,

Of course! The mapped BC, I wasn't remembering it. One such tutorial is "incompressible/pisoFoam/les/pitzDailyMapped".
And as of OpenFOAM 2.2, you can find more details about boundary conditions and function objects here: http://foam.sourceforge.net/docs/cpp/modules.html

What you're looking for is in the section Coupled boundary Conditions

The general idea is that:
  1. You define
...
New Member
Posted in programming
Views 2890 Comments 0 kindle is offline Edit Tags
Old

Function component in field

Posted June 9, 2017 at 05:10 by kindle
Updated June 9, 2017 at 13:05 by kindle

On the explaination of laplacianFoam
This is extracted from the blog dyfluid.com.

Code:
volVectorField gradT(fvc::grad(T));//创建gradT场,其值为fvc::grad(T),即为T显性离散的值          
volScalarField gradTx        
(             IOobject             
              ("gradTx",
                 runTime.timeName(),
                 DimensionedFieldmesh,
                 IOobject::NO_READ,
                 IOobject::AUTO_WRITE
...
New Member
Posted in programming
Views 2306 Comments 0 kindle is offline Edit Tags
Old

access field in BC condition

Posted May 11, 2017 at 10:26 by kindle
Updated June 7, 2017 at 13:13 by kindle

Two other links may be interesting

https://www.cfd-online.com/Forums/op...time-step.html

https://www.cfd-online.com/Forums/op...ct-scalar.html

Quote:
Originally Posted by alberto View Post
How can a field defined in the solver code be accessed from within the code of a boundary condition?

As explained here http://www.cfd-online.com/OpenFOAM_D...tml?1133622442, I'm
...
New Member
Posted in programming
Views 778 Comments 0 kindle is offline Edit Tags
Old

Updating Boundary Conditions Each Iteration

Posted May 11, 2017 at 10:03 by kindle
Updated June 7, 2017 at 13:13 by kindle

One post downstairs took his "fixed Gradient" to do the update at every time step. But how do I access to the U field of time step before?

Quote:
Originally Posted by thomas99 View Post
Hello All,

I have a situation where I would like to calculate some boundary conditions from the internal field. The problem is that, for each time step, the boundary conditions should be iteratively updated as part of the solution. I have searched the forum and noticed that many people have recommended the groovyBC or swak4Foam
...
New Member
Posted in programming
Views 655 Comments 0 kindle is offline Edit Tags
Old

average over cutting plane during runtime

Posted April 12, 2017 at 11:51 by kindle

This is a average on the cutting plane

Quote:
Originally Posted by gigilentini8 View Post
Dear FOAMers,
can you confirm me that the function object below in ControlDict is the correct and fastest way to calculate average over cutting planes in a 3D simulation during runtime?
it seems to work but I'm not 100% sure about the results...

Code:
functions
{
    cuttingplane_average
    {
        type            faceSource;
        functionObjectLibs ("libfieldFunctionObjects.so");
...
New Member
Views 1059 Comments 0 kindle is offline Edit Tags

All times are GMT -4. The time now is 20:52.