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

How to assign different values for every cells in a part of the domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2016, 11:45
Default How to assign different values for every cells in a part of the domain
  #1
Member
 
gereksiz
Join Date: Mar 2015
Posts: 42
Rep Power: 11
clktp is on a distinguished road
Hi,

I'm trying to assign different values for a specific part of the domain and the values have an order. For instance I have a flat plate domain, and my domain have 1000 cells as 10x10x10. I wanna assign values from 1 to 100 for all the first cells.

I tried to modify setFields but I couldn't do it. I used funkySetFields before, but I don't know how to do it for this case. Does anyone know how to do it, or have an idea? Actually I can do it manually, but I don't wanna do it.

My former adviser modified the setFields to help me, but I lost the code and I can't remember how he did it because I was so sicked of it that I didn't even take a look at the code.

Cheers,
clktp
clktp 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
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Pressure distribution on a wall darazsbence CFX 17 October 6, 2015 10:38
how to extract velocity values from cells fromain STAR-CCM+ 2 May 27, 2015 14:12
assign values to selected cells zxj160 OpenFOAM Pre-Processing 4 June 29, 2012 12:17
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 03:23


All times are GMT -4. The time now is 14:23.