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

timeVaryingMappedFixedValue

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 22, 2010, 13:39
Default timeVaryingMappedFixedValue
  #1
New Member
 
Irin Sun
Join Date: Jan 2010
Posts: 5
Rep Power: 16
irinsun is on a distinguished road
hi,

I am using simpleFoam k-e model. I want to use the data from the experiment for the inlet velocity, inlet k and inlet epsilon. As I understand I should do like the tutorial pitzDailyExptInlet:

constant/boundaryData/inlet/points defines the points where the experiments data are collected. And constant/boundaryData/inlet/points/0/ gives the corresponding value for U, k, epsilon.

my first question is :
If my experiment data for U are collected at different points as those data for k and epsilon, how should i edit "constant/boundaryData/inlet/points"

----------------------------------------------------------------------
What I did till now is to leave the k and epsilon to be uniform fixed value and just give U in constant/boundaryData/inlet/points/0/. I got the following error when I run the case:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading field p

Reading field U


DTRIS2 - Fatal error!
Fails for point number I = 9
M = 8
M1 = 9
X,Y(M) = 0 0.9375
X,Y(M1) = 0 0.9375
#0 Foam::error:rintStack(Foam::Ostream&) in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 ?? in "/lib/libc.so.6"
#3 Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Vector<double> >::interpolate(Foam::Field<Foam::Vector<double> > const&) const in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#4 Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Vector<double> >::checkTable() in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#5 Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Vector<double> >::updateCoeffs() in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#6 Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Vector<double> >::timeVaryingMappedFixedValueFvPatchField(Foam::f vPatch const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#7 Foam::fvPatchField<Foam::Vector<double> >::adddictionaryConstructorToTable<Foam::timeVaryi ngMappedFixedValueFvPatchField<Foam::Vector<double > > >::New(Foam::fvPatch const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#8 Foam::fvPatchField<Foam::Vector<double> >::New(Foam::fvPatch const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/simpleFoam"
#9 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::GeometricB oundaryField(Foam::fvBoundaryMesh const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/simpleFoam"
#10 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::readField(Foam::Istream&) in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/simpleFoam"
#11 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/simpleFoam"
#12 main in "/amd/software/linux64/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/simpleFoam"
#13 __libc_start_main in "/lib/libc.so.6"
#14 _start at /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:116
Segmentation fault (core dumped)
-------------------------------------------------------------------------
In my case the number of experiment data is less than the number of grid points. But I don't think this is a problem.


Any suggestion is welcome.
Thanks

Last edited by irinsun; January 22, 2010 at 14:28.
irinsun is offline   Reply With Quote

Old   January 23, 2010, 06:15
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
I have worked with timeVaryingMappedFixedValue and have seen this error many times. I suggest you switch on the Debug Flag for timeVaryingMappedFixedValue and post the result of a similar run here.

These errors are often related to the distribution of your points.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   January 23, 2010, 07:04
Default
  #3
New Member
 
Irin Sun
Join Date: Jan 2010
Posts: 5
Rep Power: 16
irinsun is on a distinguished road
Thanks Sebastian. where can I switch the debug flag on?
irinsun is offline   Reply With Quote

Old   January 24, 2010, 16:37
Default
  #4
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Quote:
Originally Posted by irinsun View Post
Thanks Sebastian. where can I switch the debug flag on?
You have to switch the debug flag inside the "global" controlDict file.
It is located in ~/OpenFOAM/OpenFOAM-1.x/etc/controlDict

I'm currently not working in my Linux environment, so I can't tell you exactly how this file looks like, but you should search for the entry timeVaryingMappedFixedValue and change the following 0 to 1 for switching on the debug flag.

If you then run the case you will get some more detailed error description.
Simply post the result here and we will have a look into it.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega 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



All times are GMT -4. The time now is 10:50.