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

TimeVaryingUniformFixedValueFvPathField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2007, 03:04
Default Hi, I need to share an arra
  #1
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17
skabilan is on a distinguished road
Hi,

I need to share an array between icoFoam.C and timeVaryingUniformFixedValueFvPathfields.C so that both the codes can update the array during the run.

Any Suggestions?

Cheers!
Senthil
skabilan is offline   Reply With Quote

Old   November 8, 2007, 14:59
Default Use a volScalarField (= list o
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Use a volScalarField (= list of scalars). This gets registered on the database which you can access from any boundary condition. See e.g. pressureInletVelocityFvPatchVectorField.C which gets phi from the database. (is surfaceScalarField but the principle is the same)
mattijs is offline   Reply With Quote

Old   November 9, 2007, 00:34
Default Hi Mattijs, Thanks for the
  #3
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17
skabilan is on a distinguished road
Hi Mattijs,

Thanks for the help! I was able to create a volScalarField (using createFields.H) basically a replica of -case directory-/0/p file. Not sure if this is the right way! I have modified the TimeVaryingUniformFixedValueFvPathField.H and .C so that it can see the new volScalarField. Success ends here! I am not sure how to write into (neither read from) the database (say the pressure value for a particluar patch into the new volScalarField) both in TimeVaryingUniformFixedValueFvPathFields.C as well as icoFoam.C. I know the new field is availble at both places.

Thanks in Advance

Senthil
skabilan is offline   Reply With Quote

Reply


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
TimeVaryingUniformFixedValueFvPathField skabilan OpenFOAM Running, Solving & CFD 5 October 26, 2007 15:19


All times are GMT -4. The time now is 16:59.