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

standAlonePatch for FSI

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 16, 2012, 10:20
Default standAlonePatch for FSI
  #1
New Member
 
Thilo Michels
Join Date: Oct 2011
Location: Hamburg
Posts: 11
Rep Power: 6
Thilo is on a distinguished road
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 is offline   Reply With Quote

Old   July 18, 2012, 03:48
Default standAlonePatch for FSI
  #2
New Member
 
Thilo Michels
Join Date: Oct 2011
Location: Hamburg
Posts: 11
Rep Power: 6
Thilo is on a distinguished road
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
Thilo is offline   Reply With Quote

Reply

Tags
fsi, openfoam 1.6-ext, standalonepatch

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 00:35.