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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: brent_craven
Forum: OpenFOAM Programming & Development June 29, 2011, 10:39
Replies: 49
Views: 32,347
Posted By brent_craven
Yes. The methodology discussed by David above...

Yes. The methodology discussed by David above (http://www.cfd-online.com/Forums/openfoam/88823-objectregistry-lookupobject-scalar.html#post309556) worked well for me:

1. Declare the scalar as an...
Forum: OpenFOAM Programming & Development May 27, 2011, 15:03
Replies: 49
Views: 32,347
Posted By brent_craven
Beautiful. Thanks! It was the .set() member...

Beautiful. Thanks!

It was the .set() member function that I was missing.

Thanks again.

Brent
Forum: OpenFOAM Programming & Development May 27, 2011, 13:58
Replies: 49
Views: 32,347
Posted By brent_craven
Ahh - a good suggestion. Thanks, David. Do...

Ahh - a good suggestion. Thanks, David.

Do you know off the top of your head how to update/write to the dictionary "on demand"?


Thanks again!

Brent
Forum: OpenFOAM Programming & Development May 27, 2011, 09:20
Replies: 49
Views: 32,347
Posted By brent_craven
That's good to know that dictionary entries are...

That's good to know that dictionary entries are not updated at runtime.

I might try calculating it on the patch, although this will be difficult as well since the value depends on previous...
Forum: OpenFOAM Programming & Development May 26, 2011, 22:53
Replies: 49
Views: 32,347
Posted By brent_craven
Thanks, David. I like your workaround. I...

Thanks, David. I like your workaround.

I briefly thought of this. The only complication to adding it to a top-level dictionary is that the scalar value changes every iteration throughout the...
Forum: OpenFOAM Programming & Development May 26, 2011, 20:19
Replies: 49
Views: 32,347
Posted By brent_craven
objectRegistry::lookupObject<scalar>

Hello all,

In boundary conditions/fvPatchFields it is quite common to "lookup" required dictionaries, variables, etc. via something like:

const volScalarField& someVariable =...
Showing results 1 to 6 of 6

 
Forum Jump

All times are GMT -4. The time now is 17:56.