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

sonicFoam how change the internal field density?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2017, 03:41
Default sonicFoam how change the internal field density?
  #1
New Member
 
LYU XING
Join Date: Jun 2017
Posts: 7
Rep Power: 9
Ryokou is on a distinguished road
Hi all

I'm now doing a simulation about shockwave created by a tube, and want to observe the variation of density field,so I add density function to sonicFoam solver,to see data image more clearly in paraView I want to change the density of internal field. but it seemed can't work, even if I change the viscosity or change the 0 directory. I have searched the solution of this problem in open foam WiKi and other websites ,it's still can't solved. so I really someone can give me some tips, thanks a lot!

555.jpg

Here is case:
https://www.dropbox.com/s/kzx2bpuivp...oam11.zip?dl=0
Ryokou is offline   Reply With Quote

Old   November 22, 2017, 02:46
Default How to find applications folder or createField.H in Mac OpenFOAM
  #2
New Member
 
LYU XING
Join Date: Jun 2017
Posts: 7
Rep Power: 9
Ryokou is on a distinguished road
Hi all

To solve this problem that can't Change initial density,I'm going to add a new density field into sonicFoam solver, but I can't find createFields.H file, and even can't find applications folder ,is it because I using Mac system? can anyone tell me how to find it? thanks a lot!
Ryokou is offline   Reply With Quote

Old   November 29, 2017, 02:58
Default
  #3
New Member
 
LYU XING
Join Date: Jun 2017
Posts: 7
Rep Power: 9
Ryokou is on a distinguished road
Hi all

It's a good news that I have found the ceateFields.H file in Mac version OpenFOAM.
And to create a new density field I added Oobject::MUST_READ,IObject::AUTO_WRITE into createFields.H file,but after calculated it's still can't read from rho file of 0 dictionary.so can anyone tell me how do I compile to change the initial density field.thanks a lot!
Attached Images
File Type: jpg ???? 2017-11-27 16.24.51.jpg (71.8 KB, 18 views)
Ryokou is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internal field boundary condition confusion cleoo OpenFOAM Pre-Processing 3 September 6, 2016 06:58
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
No density change - rhoSimplecFoam krapic OpenFOAM 1 November 29, 2014 18:39
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 15:25.