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

funkySetField initialization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2018, 10:12
Default funkySetField initialization
  #1
New Member
 
Join Date: Feb 2012
Location: Nantes
Posts: 14
Rep Power: 14
hydraulic is on a distinguished road
Hi All,


I am initializing a field using distToPatch utility. In the attached pics, I have 2 different walls: green_wall and pink_wall. I want to initialize only in the cells according to the green_wall (prism layer). For that, I am using the following command:
expression “some function”
condition "5 >=distToPatch(green_patch) ";
The problem I am facing now is: it initializes even in the cells adjacent to the pink patch. Does anyone have an idea how to avoid it?
P.S: putting an extra condition, for example pos.x >= /<=Value doesn’t t bring anything in my case. The attached pictures are representing a 2D case but I have in reality a 3D case with several type of walls.



Thanks in advance!
Attached Images
File Type: png 1.PNG (46.9 KB, 8 views)
File Type: png 2.PNG (48.9 KB, 8 views)
File Type: png 3.png (46.9 KB, 7 views)
hydraulic 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
finite values inside the simulation domain with hybrid initialization at t =0 sgbaek FLUENT 0 February 15, 2018 19:45
FMG initialization query Mohsin FLUENT 6 November 2, 2016 03:02
Domain initialization sense Red Ember CFX 5 October 14, 2016 03:31
CFX Transient Initialization frossi CFX 1 June 17, 2016 10:31
Full Multigrid Initialization Mr.Goodcat FLUENT 0 March 17, 2016 07:43


All times are GMT -4. The time now is 20:45.