CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Give me help Thanks (http://www.cfd-online.com/Forums/openfoam-solving/60417-give-me-help-thanks.html)

liugx212 November 15, 2005 17:12

Dear All, I am a newer of
 
Dear All,

I am a newer of the OpenFoam. I have a file of VTK which save the MESH of geomtry. I want to import this file to OpenFoam. But I do not know how to do? Could you please give some help for this matter?

Thanks deeply.
Guoxiang

maka November 16, 2005 11:07

Hi Buoxiang, I'm not an exp
 
Hi Buoxiang,

I'm not an expert but I think that you should make the message title more relevant to your question. For example, "importing VTK file to OpenFOAM". This will help people with experience spot and answer your message. Also it will help other people searching for some information using the search link, locate your question and its subsequent replies. Another advice is to search the forum for relevant messages of your topic before posting. You may use the link:

http://www.cfd-online.com/cgi-bin/Op...cus/search.cgi

Best of luck,
Maka

liugx212 November 16, 2005 12:49

Hi Maka: Thanks for your he
 
Hi Maka:

Thanks for your help. I will check as you said.

Guoxiang

liugx212 November 16, 2005 15:53

Hi Maka, I still not find the
 
Hi Maka,
I still not find the method how to import VTk file to OpenFoam to compute? Do you have any idea?

Thanks deeply,
Guoxiang

maka November 17, 2005 05:21

I found only the opposite, whi
 
I found only the opposite, which is foamToVTK
/OpenFOAM/OpenFOAM-1.2/applications/utilities/postProcessing/dataConversion/foam ToVTK

My advice was only related to your message title. I'm now stuck in a similar probelm of importing solution from a user defined file format (in-house code format) to foam to use it as intial condition. The problem of importing is not easy but what I found yet is that I have to use a utility setField in :
/OpenFOAM/OpenFOAM-1.2/applications/utilities/preProcessing/setFields

an example of how to use is in the dam break case in the tutorial. But yet I did not figure out how modify the setFieldsDict to do what I want.

I do not know if I helped you by providing this info. Try to post in one of the previous message posted about VTK, may one of its users can answer you.

best of luck,
Maka

mattijs November 17, 2005 06:00

I don't know of any converter
 
I don't know of any converter from vtk to Foam mesh format.

You could have a look at some of the other converters (gmshToFoam, netgenNeutralToFoam etc.) and modify the one that fits your problem best.

There is a description of the vtk file formats on the vtk site. The 'legacy' file format (the one that foamToVTK writes) is probably easiest to parse.

liugx212 November 17, 2005 18:32

Dear All, I have still no
 
Dear All,

I have still no idea. Could you please give me more guidance.

Thanks deeply.
Guoxiang

langloi November 25, 2005 00:48

Dear users, how can I write t
 
Dear users,
how can I write this equation in O.Foam :

div(rho*vv)=-grad(p)+div(mu[grad(v)+ grad(v)t])+F
my probleme is in the transpose of grad(v) (grad(v)t), v is the velocity.
thanks

eugene November 25, 2005 07:11

I think this is what you are l
 
I think this is what you are looking for

line 115
OpenFOAM-1.2.1/src/turbulenceModels/incompressible/kEpsilon/kEpsilon.C

line 132
OpenFOAM-1.2.1/src/turbulenceModels/compressible/kEpsilon/kEpsilon.C


All times are GMT -4. The time now is 13:46.