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

Defining convergent gravity field! please Help me

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 30, 2012, 07:15
Default
  #21
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 314
Rep Power: 6
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
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
adambarfi is offline   Reply With Quote

Old   July 30, 2012, 15:04
Default
  #22
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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
nimasam is offline   Reply With Quote

Old   July 31, 2012, 15:18
Default
  #23
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 314
Rep Power: 6
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by nimasam View Post
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
Dear Nima,

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
adambarfi is offline   Reply With Quote

Old   July 31, 2012, 18:55
Default
  #24
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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!
nimasam is offline   Reply With Quote

Old   August 1, 2012, 12:34
Default
  #25
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 314
Rep Power: 6
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by nimasam View Post
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!
thank you dear Nima,
I'm trying and some advances were made!!!!
I promise if I couldn't solve this problem, again I will be back
adambarfi is offline   Reply With Quote

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
problems after decomposing for running alessio.nz OpenFOAM 5 April 20, 2011 08:44
Turbulence dampening due to magnetic field in LES and RAS eelcovv OpenFOAM 0 June 8, 2010 11:35
Zero size field taranov OpenFOAM Bugs 2 April 20, 2010 04:51
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 02:45.