|
[Sponsors] |
July 16, 2012, 11:20 |
standAlonePatch for FSI
|
#1 |
New Member
Thilo Michels
Join Date: Oct 2011
Posts: 11
Rep Power: 15 |
Hi Foamers,
can someone please give me an example about how to create a standAlonePatch? Hrvoje Jasak suggets in http://www.csi.tu-darmstadt.de/media...ledsystems.pdf to use this kind of patch for coupling OpenFOAM with an external FEM code. Thank you very much in advanced. Thilo |
|
July 18, 2012, 04:48 |
standAlonePatch for FSI
|
#2 |
New Member
Thilo Michels
Join Date: Oct 2011
Posts: 11
Rep Power: 15 |
Update I
I managed to create a snadAlonePatch with the following code. Code:
pointField points(_numNodes, point(0,0,0)); for(int iP=0; iP<_numNodes; iP++){ points[iP] = vector(_coo[iP].x, _coo[iP].y, _coo[iP].z); } faceList faces(_numFaces); for(int iF=0; iF<_numFaces; iF++) { labelList myLittleFaceLabels (_face[iF]._numNodes,0); for(int iN=0; iN<_face[iF].numNodes; iN++){ myLittleFaceLabels[iN] = _face[iF]._nodes[iN]._index; } faces[iF] = face(myLittleFaceLabels); } standAlonePatch solidPatch(faces, points); Is there someone who can tell me if this is the way I can unse the standAlonePatch? I would like to use this patch to implement the structure surface of a FSI. Is there a possibility to store values which are connected with this patch? With kind regards Thilo |
|
Tags |
fsi, openfoam 1.6-ext, standalonepatch |
|
|