hi Nima,
I'm pretty a new user of OF in compare with you, can you explain me how can I define the position vector? where should I define it? I'm using the buoyantBoussinesqSimpleFoam. should I remove the g file in constant directory? can you attach me an example? actually I know what to do but I cannot Implement it in OpenFOAM!!!!!!! please help me, I'm so confused. thank you |
hi newbie :D
do you know how to implement a code at OpenFOAM at all? 1) first read user guide chapter 3 if i was true :D, it tells you how to compile a code 2) read programmer guide, it has 2,3 example how to implement a code 3) you can find some tutorials about how to add a source term to a solver or how to add energy equation into a solver in Internet. it gives you enough information how to start 4)the last but not the least ;), if you live in Iran/Tehran you can attend at ISME OpenFOAM workshop, hold by myself, i teach these things there |
Quote:
Thank you for your reply. again I rummage the user guide and programmer's guide, but I catch anything. there wasn't any example or hint for defining a position vector. till now I just change the geometry of OF examples and I've applied only small change in codes. I didn't implement a code myself, I just changed them. unfortunately, I don't live in Tehran, I'm a bachelor student of Shahrood university of technology and now I'm at Torbat-e Heydariyeh. can you help me that how and where can I define a position vector? if I define it, it is possible to change the g. of course, I'm trying to define this vector by chance!!!! I hope I can do it Thank you |
i suppose you know how to change a code :D
you need define a volVectorField g (do you know, how?, look at code and see how velocity is implemented) then you need to access position vector: poistion vector can be accessed by: U.mesh.C() and you need to read the center position vector from dictionary (see how gravity vector is implemented) i know, you know the rest, you should implement the function i mentioned in previous post. Thats it! |
Quote:
I'm trying and some advances were made!!!! I promise if I couldn't solve this problem, again I will be back ;):D |
All times are GMT -4. The time now is 18:54. |