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

How to prevent setFields to overwrite mapped values

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2018, 05:11
Default How to prevent setFields to overwrite mapped values
  #1
Member
 
hulli graemer
Join Date: Oct 2014
Posts: 48
Rep Power: 11
hulli is on a distinguished road
Hi all,



I have a case on which I mapped a field. Now I want to replace parts of that mapped field with other values such as zeros. I tried setFields and it worked, however it does not keep my mapped values. Perhaps one of you has any idea how one can keep the previously mapped values ???


Best H
hulli is offline   Reply With Quote

Old   August 24, 2018, 06:00
Default
  #2
Member
 
hulli graemer
Join Date: Oct 2014
Posts: 48
Rep Power: 11
hulli is on a distinguished road
sorry guys I foud the issue ...



one needs to comment out the defaultField Values... which apprears locical, AFTERWARDS !!! ...



/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

/*defaultFieldValues
(
volVectorFieldValue U (10 0 0)
// volScalarFieldValue T 348.432
// volScalarFieldValue p 100000
);*/

regions
(
boxToCell
{
box (0 0 0.15) (0.4 0.2 0.35);
fieldValues
(
volVectorFieldValue U (0.2 0 0)
// volScalarFieldValue T 278.746
// volScalarFieldValue p 10000
);
}
);


// ************************************************** *********************** //
hulli 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
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 06:55
Ensight - node values -cell values leo FLUENT 1 May 12, 2010 08:47
exact face values RubenG Main CFD Forum 0 June 22, 2009 11:09
strange node values @ solid/fluid interface - help JB FLUENT 2 November 1, 2008 12:04
node values or cell values? aPpA FLUENT 0 November 10, 2006 08:56


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