|
[Sponsors] |
Defining convergent gravity field! please Help me |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 30, 2012, 08:15 |
|
#21 |
Senior Member
|
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 |
|
July 30, 2012, 16:04 |
|
#22 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
hi newbie
do you know how to implement a code at OpenFOAM at all? 1) first read user guide chapter 3 if i was true , 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 |
|
July 31, 2012, 16:18 |
|
#23 | |
Senior Member
|
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 |
||
July 31, 2012, 19:55 |
|
#24 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
i suppose you know how to change a code
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! |
|
August 1, 2012, 13:34 |
|
#25 | |
Senior Member
|
Quote:
I'm trying and some advances were made!!!! I promise if I couldn't solve this problem, again I will be back |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 05:49 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Turbulence dampening due to magnetic field in LES and RAS | eelcovv | OpenFOAM | 0 | June 8, 2010 12:35 |
Zero size field | taranov | OpenFOAM Bugs | 2 | April 20, 2010 05:51 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |