|
[Sponsors] |
June 27, 2011, 05:30 |
boundary condition implementation
|
#1 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
hello foamer
i have a cyclic jump boundary condition, so i use the fan boundary in openFOAM, but my jump value changes in each time step and this value should be calculated in each time step for next iteration. now im thinking about coefficient update , could you please guide me how i can implement it |
|
June 28, 2011, 15:45 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
hi
how can i read a scalar from the solver in boundary condition some thing like : const uniformDimensionedScalarField& Tjump = db().lookupObject<uniformDimensionedScalarField>(" Tjump"); instead of uniformDimensionedScalarField , i like to use only scalar! i tried: const scalar Tjump = db().lookupObject<scalar>("Tjump"); but i encounter following error : error: cannot dynamic_cast ‘(const Foam::regIOobject*)t’ (of type ‘const class Foam::regIOobject*’) to type ‘const double*’ (target is not pointer or reference to class) |
|
Tags |
boundary, coefficient update, fan |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
Boundary Conditions | Thomas P. Abraham | Main CFD Forum | 20 | July 7, 2013 06:05 |
External Radiation Boundary Condition (Two sided wall), Grid Interface | CFD XUE | FLUENT | 0 | July 8, 2010 07:49 |
how to set up a wall boundary condition according to calculated wall shear stress? | gameoverli | OpenFOAM Pre-Processing | 1 | May 21, 2009 09:28 |
CFX Solver : Sudden crash | Hervé | CFX | 2 | June 16, 2008 07:40 |