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

Specifying nonuniform initial condition

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

Like Tree3Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   July 31, 2007, 13:02
Default Hi Quinn! Your expression 0
  #41
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,840
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Quinn!

Your expression 0.4983*pow(pos().y,-1.209) will propably be infinite for pos().y==0. Could this be the case for your mesh? At least your stack-trace says that the problem occurs during the calculation of the power

regards
Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 31, 2007, 13:10
Default Hi Mark, You might want to
  #42
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 697
Rep Power: 10
msrinath80 is on a distinguished road
Hi Mark,

You might want to wait for Bernhard to respond to that. I don't know why it does not work for you, yet.
msrinath80 is offline   Reply With Quote

Old   July 31, 2007, 14:36
Default Hi Mark! Internal error in
  #43
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,840
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Mark!

Internal error in the assembler. That is not good (and I don't take responsibility for it). What kind of Linux are you using and what are the versions of g++ and as?

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 1, 2007, 05:45
Default Hi Bernhard, Thanks for the
  #44
New Member
 
Mark Dowling
Join Date: Mar 2009
Posts: 6
Rep Power: 7
markdowlinguk is on a distinguished road
Hi Bernhard,

Thanks for the reply.
The linux is redHat Enterprise Linux Ver 4
"which as" gives me "GNU assembler 2.15.92.0.2 20040927"
and "which g++" gives me "g++ (GCC) 4.1.2"

Make of that what you can, but any help you can give would be hugely helpful

Mark
markdowlinguk is offline   Reply With Quote

Old   August 1, 2007, 09:13
Default Hi Mark! By coincidence I s
  #45
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,840
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Mark!

By coincidence I still have a machine with CentOS 4 (==RHEL 4) and the same version of gas. It compiles without a problem on that machine. Strange. Only other things I could blame: my machine is 64-bit. Yours is 32.

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 1, 2007, 09:44
Default Bernhard, I don't think the
  #46
Member
 
Quinn Tian
Join Date: Mar 2009
Posts: 62
Rep Power: 7
qtian is on a distinguished road
Bernhard,

I don't think the problem I had is due to pos().y==0 at the wall,because I tried some other formulas like 2.121e-5/pow(pos().y,3) and it worked well. Do you have any other ideas? Thanks for your help.

Quinn
qtian is offline   Reply With Quote

Old   August 1, 2007, 10:04
Default Quinn, The difference is th
  #47
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,840
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quinn,

The difference is that your other example uses a positive exponent. The other one has a negative exponent. 0^f for f<0 is almost always infinity. I asked our house mathematician and he confirmed it (although his explanation was a bit longer)

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 1, 2007, 10:18
Default Bernhard, Thanks for the gre
  #48
Member
 
Quinn Tian
Join Date: Mar 2009
Posts: 62
Rep Power: 7
qtian is on a distinguished road
Bernhard,
Thanks for the great explanation.
qtian is offline   Reply With Quote

Old   August 31, 2007, 14:49
Default Hi Bernhard, funkySetFields
  #49
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 697
Rep Power: 10
msrinath80 is on a distinguished road
Hi Bernhard,

funkySetFields seems to be incompatible with OpenFOAM 1.4.1. I took the missing fvPatchFieldFields.H from OpenFOAM 1.4. It fails with the following error message. Can you tell me how I can solve the problem. Thanks!

SOURCE=ValueExpressionDriver.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionDriver.o
ValueExpressionDriver.C: In member function 'void ValueExpressionDriver::makeZeroGradientPatches(Foa m::GeometricField<t,>&) [with T = double]':
ValueExpressionDriver.C:469: instantiated from here
ValueExpressionDriver.C:434: error: no matching function for call to 'Foam::zeroGradientFvPatchField<double>::zeroGradi entFvPatchField(const Foam::fvPatch&, Foam::Field<double>&)'
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C: In member function 'void ValueExpressionDriver::makeZeroGradientPatches(Foa m::GeometricField<t,>&) [with T = Foam::Vector<double>]':
ValueExpressionDriver.C:506: instantiated from here
ValueExpressionDriver.C:434: error: no matching function for call to 'Foam::zeroGradientFvPatchField<foam::vector<doubl e> >::zeroGradientFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)'
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
ValueExpressionDriver.C: In static member function 'static void ValueExpressionDriver::makePatches(Foam::Geometric Field<t,>&, bool, const Foam::wordList&) [with T = double]':
ValueExpressionDriver.C:602: instantiated from here
ValueExpressionDriver.C:557: error: no matching function for call to 'Foam::fixedValueFvPatchField<double>::fixedValueF vPatchField(const Foam::fvPatch&, Foam::Field<double>&)'
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPa tchField.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPa tchField.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPa tchField.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPa tchField.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPa tchField.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C:602: instantiated from here
ValueExpressionDriver.C:559: error: no matching function for call to 'Foam::zeroGradientFvPatchField<double>::zeroGradi entFvPatchField(const Foam::fvPatch&, Foam::Field<double>&)'
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C: In static member function 'static void ValueExpressionDriver::makePatches(Foam::Geometric Field<t,>&, bool, const Foam::wordList&) [with T = Foam::Vector<double>]':
ValueExpressionDriver.C:607: instantiated from here
ValueExpressionDriver.C:557: error: no matching function for call to 'Foam::fixedValueFvPatchField<foam::vector<double> >::fixedValueFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)'
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPa tchField.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPa tchField.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPa tchField.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPa tchField.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPa tchField.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
ValueExpressionDriver.C:607: instantiated from here
ValueExpressionDriver.C:559: error: no matching function for call to 'Foam::zeroGradientFvPatchField<foam::vector<doubl e> >::zeroGradientFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)'
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFv PatchField.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
make: *** [Make/linux64GccDPOpt/ValueExpressionDriver.o] Error 1
msrinath80 is offline   Reply With Quote

Old   August 31, 2007, 16:15
Default Hi! You're refering to the
  #50
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,840
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi!

You're refering to the sources from the Wiki. You can access the sources that compile on 1.4.1 via subversion. Type

svn checkout http://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder /utilities/postProcessing/FunkySetFields/

(provided you have Subversion installed on your machine)

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 31, 2007, 16:27
Default Beautiful! Thanks a lot Bernha
  #51
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 697
Rep Power: 10
msrinath80 is on a distinguished road
Beautiful! Thanks a lot Bernhard. It compiled cleanly.

PS: Just one minor thing: For others using the above command, please note that there is no space between Breeder and /utilities.
msrinath80 is offline   Reply With Quote

Old   September 8, 2007, 09:48
Default Great tool! Thanks! Just wa
  #52
New Member
 
Yingfeng Shen
Join Date: Mar 2009
Location: Finland
Posts: 8
Rep Power: 7
yingfeng is on a distinguished road
Great tool! Thanks!

Just want to remind people that under bison 2.3 it did not compile until I run /insertGenerated.sh. I am using ubuntu 7.04.

The error message was:
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionParser.yySegmentation fault (core dumped)
Making dependency list for source file ValueExpressionLexer.ll
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionLexer.ll
Segmentation fault (core dumped)
Making dependency list for source file ValueExpressionDriver.C
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionDriver.C
Segmentation fault (core dumped)
Making dependency list for source file funkySetFields.C
could not open file ValueExpressionParser.tab.hh for source file funkySetFields.C
Segmentation fault (core dumped)
yingfeng is offline   Reply With Quote

Old   September 16, 2007, 18:58
Default Hi Bernhard, I am trying to
  #53
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 697
Rep Power: 10
msrinath80 is on a distinguished road
Hi Bernhard,

I am trying to use funkySetFields to initialize a multiphaseinterFoam simulation. The geometry is a 2D square, the upper half is initialized with air, the lower half is initialized with water. Both these are done using the setFields utility. So the alphaair and alphawater fields have been set.

Now, I use funkysetFields to initialize an oil drop (circle) in the upper half of the square, which causes the alphaoil field to be set.

So far everything is fine. However when I try to visualize the 0/ time step using isosurface of air = 0.5 in paraFoam, I only see the air-water interface. The air-oil interface is not shown.

Is there any way to get funkySetFields to manipulate two fields simultaneously assuming that it is aware of both fields?

Alternately how can one initialize a circle using just setFields?
msrinath80 is offline   Reply With Quote

Old   September 16, 2007, 19:22
Default Problem solved: Here is the
  #54
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 697
Rep Power: 10
msrinath80 is on a distinguished road
Problem solved:

Here is the sequence of steps I followed:

1) Use setFields to set pure air above and pure water below (i.e. set the alphaair and alphawater fields).
2) Use funkySetFields to set the circular patch of oil above (i.e. set the alphaoil field).
3) Use funkySetfields again to set alphaair to zero in the same circular region.

Just need to keep in mind that it is important to use the -keepPatches switch on throughout.
msrinath80 is offline   Reply With Quote

Old   September 5, 2008, 03:43
Default Hi All, I have used funkySe
  #55
New Member
 
Ken Mattsson
Join Date: Mar 2009
Posts: 7
Rep Power: 7
kenson70 is on a distinguished road
Hi All,

I have used funkySetFields to initiate my boundary and initial data. The problem is that my boundary data is also time-dependent. Is there a way to use this utility to specify boundary data at each time-step in the simulation or is there some other quick solution.

Best regards Ken
kenson70 is offline   Reply With Quote

Old   September 5, 2008, 05:29
Default Hi Ken! I'm afraid this won
  #56
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,840
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Ken!

I'm afraid this won't work with funkySetFields (even if you specified for instance U at t=1,t=2 etc and started the simulation at t=0 then the solver would overwrite the fields using the boundary conditions it got at t=0)

Have a look at the directory
$FOAM_SRC/finiteVolume/fields/fvPatchFields/derived
the boundary conditions there that start with timeDependent* might be a good start

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 27, 2008, 03:49
Default Hi, I work with funkySetFie
  #57
New Member
 
Miku
Join Date: Mar 2009
Posts: 7
Rep Power: 7
miku is on a distinguished road
Hi,

I work with funkySetFields and it is no problem to inject one droplet. But I want to inject more droplets periodically. Can I do this with funkySetFields and the timeSelector-option?Or is there another possibility to solve my problem?
Thanks in advance!
miku is offline   Reply With Quote

Old   December 1, 2008, 04:52
Default Hi Miku! You mean "periodic
  #58
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,840
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Miku!

You mean "periodic _in time_". No this is not possible. Event if you manipulate the gamma-field for different timesteps, they won't be read (only the initial conditions will be read)
You'll have to write some kind of boundary-condition

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 14, 2009, 15:08
Default Hello, I was able to compi
  #59
sek
Member
 
Sung-Eun Kim
Join Date: Mar 2009
Posts: 76
Rep Power: 7
sek is on a distinguished road
Hello,

I was able to compile funkySetFields on my linux box. Encouraged, I went on tried to compile funkySetFields on my MacBook Pro but things didn't go well and I got the followin,message. Can someone enlighten me what he problem is?

kimsmac:~/OpenFOAM/sung-eunkim-1.5/applications/utilities/funkySetFields sung-eunkim$ wmake
g++ -DdarwinIntel -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/darwinIntelDPOpt -I/Users/sung-eunkim/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/Users/sung-eunkim/OpenFOAM/OpenFOAM-1.5/src/meshTools/lnInclude -IlnInclude -I. -I/Users/sung-eunkim/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/Users/sung-eunkim/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -Ddarwin -lpthread -L/Users/sung-eunkim/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt -lOpenFOAM -L/Users/sung-eunkim/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/openmpi-1.2.6 -lPstream Make/darwinIntelDPOpt/ValueExpressionParser.o Make/darwinIntelDPOpt/ValueExpressionLexer.o Make/darwinIntelDPOpt/ValueExpressionDriver.o Make/darwinIntelDPOpt/funkySetFields.o -L/Users/sung-eunkim/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt \
-lfiniteVolume -lmeshTools -lOpenFOAM -lpthread -lm -o /Users/sung-eunkim/OpenFOAM/sung-eunkim-1.5/applications/bin/darwinIntelDPOpt/fu nkySetFields
/usr/bin/ld: Undefined symbols:
Foam::pointPatchField<foam::symmtensor<double> >::dictionaryConstructorTablePtr_
Foam::pointPatchField<foam::symmtensor<double> >::disallowGenericPointPatchField
Foam::pointPatchField<foam::symmtensor<double> >::pointPatchConstructorTablePtr_
Foam::pointPatchField<foam::symmtensor<double> >::debug
Foam::pointPatchField<foam::sphericaltensor<double > >::dictionaryConstructorTablePtr_
Foam::pointPatchField<foam::sphericaltensor<double > >::disallowGenericPointPatchField
Foam::pointPatchField<foam::sphericaltensor<double > >::pointPatchConstructorTablePtr_
Foam::pointPatchField<foam::sphericaltensor<double > >::debug
Foam::pointPatchField<foam::tensor<double> >::dictionaryConstructorTablePtr_
Foam::pointPatchField<foam::tensor<double> >::disallowGenericPointPatchField
Foam::pointPatchField<foam::tensor<double> >::pointPatchConstructorTablePtr_
Foam::pointPatchField<foam::tensor<double> >::debug
Foam::pointPatchField<foam::vector<double> >::dictionaryConstructorTablePtr_
Foam::pointPatchField<foam::vector<double> >::disallowGenericPointPatchField
Foam::pointPatchField<foam::vector<double> >::pointPatchConstructorTablePtr_
Foam::pointPatchField<foam::vector<double> >::debug
Foam::pointPatchField<double>::dictionaryConstruct orTablePtr_
Foam::pointPatchField<double>::disallowGenericPoin tPatchField
Foam::pointPatchField<double>::pointPatchConstruct orTablePtr_
Foam::pointPatchField<double>::debug
Foam::valuePointPatchField<foam::symmtensor<double > >::typeName
Foam::valuePointPatchField<foam::sphericaltensor<d ouble> >::typeName
Foam::valuePointPatchField<foam::tensor<double> >::typeName
Foam::valuePointPatchField<foam::vector<double> >::typeName
Foam::valuePointPatchField<double>::typeName
Foam::coupledPointPatchField<foam::symmtensor<doub le> >::typeName
Foam::coupledPointPatchField<foam::sphericaltensor <double> >::typeName
Foam::coupledPointPatchField<foam::tensor<double> >::typeName
Foam::coupledPointPatchField<foam::vector<double> >::typeName
Foam::coupledPointPatchField<double>::typeName
Foam::calculatedPointPatchField<foam::symmtensor<d ouble> >::typeName
Foam::calculatedPointPatchField<foam::sphericalten sor<double> >::typeName
Foam::calculatedPointPatchField<foam::tensor<doubl e> >::typeName
Foam::calculatedPointPatchField<foam::vector<doubl e> >::typeName
Foam::calculatedPointPatchField<double>::typeName
Foam::face::intersection(Foam::Vector<double> const&, Foam::Vector<double> const&, Foam::Vector<double> const&, Foam::Field<foam::vector<double> > const&, Foam::intersection::algorithm) const
Foam:Fstream:Fstream(Foam::fileName const&, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType)
collect2: ld returned 1 exit status
make: *** [/Users/sung-eunkim/OpenFOAM/sung-eunkim-1.5/applications/bin/darwinIntelDPOpt/f unkySetFields] Error 1
sek is offline   Reply With Quote

Old   January 14, 2009, 17:25
Default Sungeun, Are you sure your
  #60
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 196
Blog Entries: 1
Rep Power: 8
egp is on a distinguished road
Sungeun,

Are you sure your OSX install of OF-1.5 went smoothly? The fact that you have undefined symbols makes it look like your underlying OpenFOAM install did not build properly.

I was able to compile FSF on both my MacBookPro and by desktop MacPro.

Eric
egp is offline   Reply With Quote

Reply

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
Specifying nonuniform boundary condition maka OpenFOAM Running, Solving & CFD 59 October 22, 2014 14:52
Nonuniform initial condition using cellSetDict rinao OpenFOAM Running, Solving & CFD 6 January 9, 2013 00:42
Initial Condition Tang Kuei FLUENT 0 May 17, 2006 19:54
Nonuniform gradient boundary condition ankgupta8um OpenFOAM Running, Solving & CFD 1 March 14, 2006 01:34
Nonuniform initial conditions nico OpenFOAM Pre-Processing 2 January 4, 2006 06:37


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