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

boundary condition implementation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2011, 05:30
Default boundary condition implementation
  #1
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
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, 15:45
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
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


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 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


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