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

DPMFoam / particle paramagnetic force

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vonboett

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2015, 11:48
Default DPMFoam / particle paramagnetic force
  #1
New Member
 
matin
Join Date: Nov 2014
Posts: 4
Rep Power: 12
matin is on a distinguished road
Dear Foamers,

I'm currently using DPMFoam and MagneticFoam to simulate flow containing particles in a magnetic field. To do this I have to first create the volVectorField HdotGradH, which I already did. I also have the particles in the channel. In order to apply the magnetic field I need to add the paramagnetic force to the kinematicCloudProperties directory, which Includes magneticSusceptibility & volvectorField HdotGradH.
I created my submodel as follow:

particleForces
{
WenYuDrag
{
alphac alpha.water;
}
gravity;

paramagnetic
{
magneticSusceptibility 6e-4; //m^3/kg
HdotGradH HdotGradH; //magnetic force
}

when I run the case, it gives the following error:

request for volVectorField HdotGradH from objectRegistry region0 failed
available objects of type volVectorField are
1(U.water)


From function objectRegistry::lookupObject<Type>(const word&) const
in file /home/opencfd/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 198.

FOAM aborting

#0 Foam::error:: srintStack(Foam::Ostream&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const& Foam:: objectRegistry::lookupObject<Foam::GeometricField< Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#3 Foam::ParamagneticForce<Foam::KinematicCloud<Foam: :Cloud<Foam::CollidingParcel<Foam::KinematicParcel <Foam:: particle> > > > >::cacheFields(bool) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/liblagrangianIntermediate.so"
#4
in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/DPMFoam"
.
.
My problem is that Openfoam does not recognize the HdotGradH file in the Zero directory and only sees the U.water as the volvectorfield !!

I tried every possible format, like the following:

HdotGradH HdotGradH.force;
HdotGradHName HdotGradH;
.
.
.
but the only case that program could run is:
HdotGradH U.water;

but it's not correct, cause I need to have magnetic field, not velocity field !

I would really appreciate if anyone could help me with this problem to see why OpenFoam does not see the HdotGradH file in the Zero directory.

Any help or reference regarding DPMFoam/MPPICFoam would be highly appreciated.

Best regards,

Matin
matin is offline   Reply With Quote

Old   May 20, 2016, 05:07
Default
  #2
Senior Member
 
Albrecht vBoetticher
Join Date: Aug 2010
Location: Zürich, Swizerland
Posts: 240
Rep Power: 17
vonboett is on a distinguished road
although a late reply I'd like to note that it is helpful to look into createFields.H of the solver to see how fields are added to the object registry...
matin likes this.
vonboett is offline   Reply With Quote

Reply

Tags
dpmfoam, hdotgradh, magnetic field, mppicfoam, paramagnetic force


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
ActuatorDiskExplicitForce in OF2.1. Help be_inspired OpenFOAM Programming & Development 10 September 14, 2018 12:12
injection problem Mark New FLUENT 0 August 4, 2013 02:30
Force can not converge colopolo CFX 13 October 4, 2011 23:03
how to perform temperature gradient on a particle (Thermophoretic Force) wwt650420 FLUENT 3 March 23, 2011 03:10
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02:29


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