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

set a fixed value to the internal field

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2018, 04:52
Default set a fixed value to the internal field
  #1
Member
 
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8
jiahui_93 is on a distinguished road
Hello, I would like to get some help on the way to set a fixed value to the internal field of nut, so that it stay constant over time step. I tried many times but it seems keep changing over time steps for both uniform and non uniform type. The "constant" keyword is not available for internal field. May I know any other way to do? Thanks for your time and help.


Jia Hui
jiahui_93 is offline   Reply With Quote

Old   October 6, 2018, 09:55
Default
  #2
Member
 
Vince
Join Date: Mar 2017
Posts: 45
Rep Power: 9
hyFoam is on a distinguished road
Hi Jia Hui,


Your question sounds similar to that of this post where someone wanted to fix the velocity vector in one cell of the domain, i.e., not to solve the momentum equation for this cell:

Fix velocity value


Please have a look.

Thanks,
Vince
hyFoam is offline   Reply With Quote

Old   October 6, 2018, 10:33
Default
  #3
Member
 
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8
jiahui_93 is on a distinguished road
Quote:
Originally Posted by hyFoam View Post
Hi Jia Hui,


Your question sounds similar to that of this post where someone wanted to fix the velocity vector in one cell of the domain, i.e., not to solve the momentum equation for this cell:

Fix velocity value


Please have a look.

Thanks,
Vince
Thanks a lot for your help.

p/s: I'm using pimpleFoam to run incompressible flow within a rectangular duct with a small solid within it. I would like to fix nut internal field value.
Should I create or use other .H file in the incompressible directory? I have pEqn.H, UEqn.H, createFiels.H and pimpleFoam.c in my pimpleFoam directory.

or it can be done by edit the following file (replace the existing with the code u provide)?
https://github.com/vincentcasseau/hy...vEqnInviscid.H


After edit the file, i can run the solver? Do i need to set anything in the internal field ? Eg: uniform 1 or non uniform..?

Sorry for my dummy question, because i have totally no basic on programming, learning from zero now��. Thanks again for your help. Appreciate it

Last edited by jiahui_93; October 6, 2018 at 23:05.
jiahui_93 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 07:30
How to set some p.internalField to be fixed? Kelong Wang OpenFOAM Pre-Processing 0 December 4, 2014 20:39
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
correction of Grub after installing Windows XP and 8 immortality Lounge 20 January 5, 2014 17:41
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 09:53


All times are GMT -4. The time now is 22:57.