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

Writing velocity and coordinates into text file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2021, 13:17
Default Writing velocity and coordinates into text file
  #1
New Member
 
Krystian Pietrzak
Join Date: May 2021
Posts: 1
Rep Power: 0
KrystianP is on a distinguished road
Hello everyone,

I am trying to simulate VOF LES collision of two fluid jets. In order to do so I am simulating flow in the injector first, than I want to use the results saved in a text file as velocity inlet boundry condition for the main domain where the injection is about to happen in order to increase calculations stablity and reduce number of elements in a single simulation.
I made a selection which is made of around 4000 cell faces. I want to write the results in a txt file in such manner:

cell face coordinate x ; cell face coordinate y ; cell face coordinate z ; velocity x component for this cell; velocity y component for this cell; velocity z component for this cell.

I have problems with writing a formula in order to get the single cell face coordinates. Has anyone ever done such thing? I tried using for loop and XB[i][0] to itarate through all faces in the selection and get the x coordinate but I get numbers which doesnt make any sense.

The selection I made, from which I want to get the results is shown on the first picture as a gray circle inside the pink selection. I have also included a file which is contained in VOF LES tutorial, with x,y coordinates of every cell in selection with corresponding velocity components. I want to achive the same result but with x,y,z coordinates and x,y,z velocity components.

I would be thankful for all your responses
Attached Images
File Type: jpg IMG-0096.jpg (98.2 KB, 6 views)
File Type: jpg IMG-0094.jpg (164.6 KB, 6 views)
File Type: jpg IMG-0097.jpg (106.1 KB, 7 views)
Attached Files
File Type: txt inlet_975.txt (185.9 KB, 1 views)
KrystianP 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
Keeping intermediate files OVS SU2 5 December 5, 2021 11:41
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times vidyadhar ParaView 9 May 20, 2020 20:06
Shape optimization doesn't converge - Adjoint log file JPBLourenco SU2 Shape Design 0 December 11, 2017 08:41
velocity and cell coordinates on Threshold plane- Inflow Plane of virtual Disk surajp92 STAR-CCM+ 2 June 21, 2017 09:48
Question about SU2 optimization YoniHe SU2 Shape Design 3 January 15, 2016 00:31


All times are GMT -4. The time now is 06:04.