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

How to integrate notepad data into the 3D computational domain using script?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2023, 01:05
Default How to integrate notepad data into the 3D computational domain using script?
  #1
Member
 
Niyas
Join Date: Apr 2013
Posts: 45
Rep Power: 13
niyas is on a distinguished road
Hello all,

I am currently working on a project in OpenFoam version-6, involving a 3D hollow cylindrical domain, as depicted in Figure-1, with specific initial and boundary conditions. I possess a separate notepad file containing some values for pressure, temperature, and velocity, which I have attached as NotepadData. My goal is to incorporate this data into the domain, as shown in Figure-2.

How to write a script that can effectively take this notepad data and integrate it into the domain. I am aware that I need to utilize setFields, but I lack the knowledge to create the necessary script for this task.

Is there any tutorial available for this kind of task? I kindly request any guidance or insights from the community members experienced in this area.
Attached Images
File Type: png Figure-1.PNG (15.0 KB, 3 views)
File Type: png NotepadData.PNG (52.0 KB, 2 views)
File Type: png Figure-2.PNG (15.7 KB, 2 views)
__________________
Regards,
Niyas

Last edited by niyas; October 15, 2023 at 21:12.
niyas is offline   Reply With Quote

Old   October 14, 2023, 04:12
Default
  #2
Senior Member
 
andy
Join Date: May 2009
Posts: 322
Rep Power: 18
andy_ is on a distinguished road
What you need to do will depend on whatever CFD solver you are using. It might be a script in python, lua, javascript or something invented, a text or binary file in a particular format with an entry somewhere naming the file or possibly something else.
andy_ is offline   Reply With Quote

Old   October 15, 2023, 21:10
Default
  #3
Member
 
Niyas
Join Date: Apr 2013
Posts: 45
Rep Power: 13
niyas is on a distinguished road
Thanks for the reply.

Sorry, I forgot to mention about the CFD solver. I am using OpenFOAM version -6.
__________________
Regards,
Niyas
niyas is offline   Reply With Quote

Reply

Tags
openfoam 6, script


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
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times vidyadhar ParaView 9 May 20, 2020 21:06
Monte Carlo Simulation: H-Energy is not convergating & high Incident Radiation volleyHC CFX 5 April 3, 2016 06:41
Floating point exception: Zero divide liladhar CFX 11 December 16, 2013 05:07
injection problem Mark New FLUENT 0 August 4, 2013 02:30
2d irregular grid Remy Main CFD Forum 1 December 22, 2008 05:49


All times are GMT -4. The time now is 13:10.