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

Create non-uniform internal field values based on a graph or table

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2023, 09:20
Default Create non-uniform internal field values based on a graph or table
  #1
New Member
 
Join Date: Dec 2021
Posts: 27
Rep Power: 5
finn_amann is on a distinguished road
Hello friends,


I have created a three-dimensional, rectangular domain with blockMesh and I'd like to set the internal values of a scalar field based on values in a table.



The table holds values for the y-direction in the domain and are represented by the graph in the attached image. Here, the vertical axis describes the y-coordinate in the domain and the horizontal axis describes the corresponding value. You could imagine that the table holds the internal values for a single "column of cells" in my domain.



Now, I'd like to assign these values to all cell columns.


Do you know of an easy way to achieve something like this? I thought this might be a case for swak4foam/setExprFields, but maybe I have to write something completely new for this.


Any ideas?


Best regards
Finn
Attached Images
File Type: png graph.png (61.6 KB, 1 views)
finn_amann 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
Temperqture field not solved in LES - heat transfer - rhopimplefoam arun1994 OpenFOAM Pre-Processing 0 November 24, 2021 16:13
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 23:38
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
simpleFoam Floating point error (Core Dumped) sam.ho OpenFOAM Running, Solving & CFD 2 December 31, 2013 07:57
[blockMesh] Include list of points Hikachu OpenFOAM Meshing & Mesh Conversion 0 June 20, 2011 10:03


All times are GMT -4. The time now is 18:39.