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

Reading and setting the values of fields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2016, 11:56
Default Reading and setting the values of fields
  #1
New Member
 
Philippe Gambron
Join Date: Apr 2015
Location: Oxford
Posts: 5
Rep Power: 11
zaphod is on a distinguished road
Hello,

I would like to obtain the values of fields like U or p and to to be able to set them. The goal would be to use an external solver.

I have gone through the documentation and started digging in the source code but found no obvious way to do this.

How could I do?

Thanks!
zaphod is offline   Reply With Quote

Old   January 22, 2016, 06:00
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
in swak4Foam there is an utility called manipulateField, then you can set internalField with user-defined functions
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   January 22, 2016, 09:10
Default
  #3
New Member
 
Philippe Gambron
Join Date: Apr 2015
Location: Oxford
Posts: 5
Rep Power: 11
zaphod is on a distinguished road
Thank you!

This seems really handy.
zaphod is offline   Reply With Quote

Reply

Tags
field


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
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 07:55
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) Aadhavan OpenFOAM Meshing & Mesh Conversion 2 March 8, 2018 02:47
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 23:38
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 18:51
Reading field values and setting them as boundary conditions sega OpenFOAM Running, Solving & CFD 1 July 7, 2009 07:18


All times are GMT -4. The time now is 16:24.