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

Best way to pass a scalar variable to a runtime selectionnable class?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2014, 09:53
Default Best way to pass a scalar variable to a runtime selectable class?
  #1
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hi All,

I've slightly modified the icoDyMFoam solver to compute a scalar variable at each time step. For now, this variable is only declared in myIcoDyMFoam.C.

I'd like to use this variable in the dynamicFvMesh class i use (namely a modified version of mixerGgiFvMesh)

What is the best way to access this variable in mixerGgiFvMesh?

Thanks for your help
Yann

Last edited by Yann; October 22, 2014 at 12:47.
Yann 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
Pass a variable from a class to a subequation in the main solver lord_kossity OpenFOAM Running, Solving & CFD 0 September 3, 2009 13:03
How to pass a variable from a define macro... Padian FLUENT 2 May 30, 2008 06:22
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 05:35
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09


All times are GMT -4. The time now is 21:07.