|October 28, 2013, 22:09||
How to get access to a certain boundary?
Join Date: Oct 2013
Posts: 2Rep Power: 0
Good day to everyone!
I'm a beginner of operating OpenFOAM codes, I have some trouble in searching a certain class instance and accessing its memberfunctions. Details are listed below:
I'm going to simulate two solid body in fluid fields. One can move freely and the other must move according to the movement of the first one. So I use two boundary field type to abtain this goal. One is "sixDofSolidMotionDisplacement" named "wing" and the other is "angularOscillatingDisplacment" named "plate", and they are set in file "0/pointDisplacement".
Now, in order to make the forced move object rotate according to the movement of the first one, I have to modify the "angularOscillatingDisplacment" class to make "plate" be able to get information of the class instance "wing". Now it's time to ask the question:
I know the name is "wing", how can I find this class instance?
Thank you all!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|October 31, 2013, 06:03||
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 282Rep Power: 10
label wingPatchID = mesh.boundary().findPatchID("wing"); //for any field S of type T: fvPatchField<T>& pwing = S.boundaryField()[wingPatchID];
|boundary, dynamic mesh, pimpledymfoam|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Implementation of boundary conditions for FVM||Tom||Main CFD Forum||7||August 26, 2014 05:58|
|Water subcooled boiling||Attesz||CFX||7||January 5, 2013 04:32|
|access to a property in a boundary condition using UDF||Negin_Salehi||Fluent UDF and Scheme Programming||3||November 16, 2012 17:11|
|Domain Imbalance||HMR||CFX||3||March 6, 2011 21:10|
|Boundary conditions?||Tom||Main CFD Forum||0||November 5, 2002 02:54|