CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

mapping Data to internal field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2018, 22:49
Default mapping Data to internal field
  #1
Senior Member
 
cyln
Join Date: Jul 2016
Posts: 102
Rep Power: 10
cyln is on a distinguished road
Hello,

I am trying to map data to an internal field (i.e. over a flat plane within the domain). According to documentation, I can do it using mapFields's cuttingPatch.

Code:
patchMap
(
   <coincident patches in the two cases>
);
 
cuttingPatches
(
   <target patches who has to be mapped from the original internal field now cut by patches>
);
- First of all, I do not have the first case. I want to initialize data in a small plane within the domain. So, patchMap will remain empty.

- I do not understand what " <target patches who has to be mapped from the original internal field now cut by patches>" means. I do not have a second case. Can somebody describe me a way to map data to an internal field?


Cheers,
CYln
cyln is offline   Reply With Quote

Old   April 10, 2018, 05:19
Default
  #2
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Hey cyln,
Quote:
Originally Posted by cyln View Post
First of all, I do not have the first case. I want to initialize data in a small plane within the domain.
You can try using setFields to set your variables, while defining the plane with topoSet or cellSet (i can't remember wich of both worked for me).

Quote:
- I do not understand what " <target patches who has to be mapped from the original internal field now cut by patches>" means. I do not have a second case.
I guess this refers to the mapFields utility which can be used to map data from one case to another. mapFields supports mapping data from and to case of different mesh size, which is where cutting patches (e.g. the mesh of the second case larger mesh may be cuttion through the patches of the smaller first mesh) come into play.
RobertHB 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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 07:56
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
Problem in sampling data of custom field function in ANSYS FLUENT v14 apek_great ANSYS 1 February 26, 2014 05:10
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
chtMultiRegionFoam - exchange data between flow field and temperature phsieh2005 OpenFOAM Running, Solving & CFD 0 February 7, 2012 09:16


All times are GMT -4. The time now is 21:55.