CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

mixedValue BC reads different Values than fixedGradient BC

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   September 15, 2017, 11:29
Default mixedValue BC reads different Values than fixedGradient BC
New Member
Join Date: Sep 2017
Posts: 1
Rep Power: 0
lohoko is on a distinguished road
Hi Guys!

I'm very new to the forum, but reading some of the threads here always helped a lot! Unfortunately I haven't found anything on my topic.

I am using the solidDisplacement Solver of OpenFOAM-2.3.x (but I couldn't find a solution for my problem on any newer or different Version).
Currently I am trying to "transform" the tractionDisplacement boundary condition, which is fixedGradient into mixedValue, so I can set a specific value at the boundary for certain conditions.
So I copied the code and changed the settings from fixedGradient to mixedValue (in the constructors part and .H file). I cut the codes, so nothing is calculated, but only the sigmaD value read and put out. I tried the code by just testing the following lines

    const fvPatchField<symmTensor>& sigmaD =
        patch().lookupPatchField<volSymmTensorField, symmTensor>("sigmaD");

Info << "sigmaD" << max((sigmaD)) << " min " << min((sigmaD)) << endl;
I made sure that the code doesn't do anything else, for both BCs fixedGradient and mixedValue. But unfortunately the sigmaD values vary a lot. While the fixedGradient BC is getting values between -7500 and +7500, the midexValue BC gets values between -2e+09 and +2e+08.

This seems very strange to me.

Can anybody help me? Did I miss anything with the constructors? Does that even influence the value?

lohoko is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 30 September 19, 2017 12:38
Setting patch field values equal to internal field values leroyv OpenFOAM Programming & Development 1 October 21, 2014 15:49
Loading Cell Values in Tecplot P1361 OpenFOAM Post-Processing 3 September 16, 2014 04:02
[swak4Foam] About groovyBC to set distributed fixedGradient values for each cell boundary patch nwpukaka OpenFOAM Community Contributions 6 August 12, 2014 06:34
Plotting raw data values Wilesco Siemens 0 January 5, 2006 06:34

All times are GMT -4. The time now is 19:37.