CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   timeVaryingMappedFixedValue (https://www.cfd-online.com/Forums/openfoam-pre-processing/72023-timevaryingmappedfixedvalue.html)

irinsun January 22, 2010 13:39

timeVaryingMappedFixedValue
 
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::printStack(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::DimensionedField<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::DimensionedField<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::DimensionedField<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::DimensionedField<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

sega January 23, 2010 06:15

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.

irinsun January 23, 2010 07:04

Thanks Sebastian. where can I switch the debug flag on?

sega January 24, 2010 16:37

Quote:

Originally Posted by irinsun (Post 243528)
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.


All times are GMT -4. The time now is 04:58.