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

boundary condition implementation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2011, 04:30
Default boundary condition implementation
  #1
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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
nimasam is offline   Reply With Quote

Old   June 28, 2011, 14:45
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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)
nimasam is offline   Reply With Quote

Reply

Tags
boundary, coefficient update, fan

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Boundary Conditions Thomas P. Abraham Main CFD Forum 20 July 7, 2013 05:05
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 06:49
how to set up a wall boundary condition according to calculated wall shear stress? gameoverli OpenFOAM Pre-Processing 1 May 21, 2009 08:28
CFX Solver : Sudden crash Hervé CFX 2 June 16, 2008 06:40


All times are GMT -4. The time now is 10:13.