CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   standAlonePatch for FSI (https://www.cfd-online.com/Forums/openfoam-programming-development/104798-standalonepatch-fsi.html)

Thilo July 16, 2012 10:20

standAlonePatch for FSI
 
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

Thilo July 18, 2012 03:48

standAlonePatch for FSI
 
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);

I use some external classes which describe the points and faces which I would like to store in the OpenFOAM enviroment. I dont explain these classes but I'm happy to provide further information if necessary.

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


All times are GMT -4. The time now is 06:41.