CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Prescribing a volume force to a 2D simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By DAWTson

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2022, 08:29
Default Prescribing a volume force to a 2D simulation
  #1
New Member
 
Mathias
Join Date: Feb 2022
Posts: 4
Rep Power: 4
DAWTson is on a distinguished road
Hi,

I'm rather new to Star CCM+, and currently trying to efficiently try design-iterations of a diffuser for a DAWT. Hence, I'd like to run my simulations axisymmetrically. I want to prescribe a volumetric force, like the virtual disc, but I dont know how to accomplish this.

From the manual (and general google search) I gather that:

1) It has to be assigned from "Physica values" under Regions.

2) I have to create a table or Field Function to define the position/span of the source.

I am not familiar with the syntax of field functions however, and my search in the threads in here has lead me anywhere useful so far.
Any suggestions on how to accomplish this easily?
I'd like to prescribe the force to a line from e.g. [0,0,0] to [0,1,0]

Thanks a lot!
DAWTson is offline   Reply With Quote

Old   February 2, 2022, 02:50
Default
  #2
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 437
Rep Power: 18
cwl is on a distinguished road
Quote:
I'd like to prescribe the force to a line from e.g. [0,0,0] to [0,1,0]
Code:
($$Position[1] >= 0) && (Position[1] <= 1)
?
  <your value>
:
  0
In here $$Position[1] is the y-coordinate (x is $$Position[0], z is $$Position[2]).
That would apply force everywhere in 0.0 ≤ y ≤ 1.0.

But - force cannot be applied at "line" it should be applied in some volume, so depending on your task approach - you'll have to add some extra coordinate conditions (into the first line of the field function) so that your field function would be appied only in the chosen volume.
cwl is offline   Reply With Quote

Old   February 2, 2022, 04:09
Default
  #3
New Member
 
Mathias
Join Date: Feb 2022
Posts: 4
Rep Power: 4
DAWTson is on a distinguished road
Thank you for your reply cwl.

Would this mean I should apply it on an area, which would then become a volume once the axisymmetric condition is enforced?
DAWTson is offline   Reply With Quote

Old   February 2, 2022, 05:20
Default
  #4
New Member
 
Mathias
Join Date: Feb 2022
Posts: 4
Rep Power: 4
DAWTson is on a distinguished road
So, I have written the code in the attached picture in a scalar field function.
It previews nicely, so I am assuming nothing is wrong with the code itself.
However, the field function does not appear when selecting my function in the momentum source option. When looking under the field functions section, I see that it is crossed out - do I need to somehow publicize it, or is this a symbol of some error? This is also shown in attached picture.
Attached Images
File Type: png FF_Error.PNG (8.3 KB, 2 views)
File Type: png Code.PNG (2.2 KB, 1 views)
DAWTson is offline   Reply With Quote

Old   February 2, 2022, 05:26
Default
  #5
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 437
Rep Power: 18
cwl is on a distinguished road
I'd suggest you read about field functions in the STAR-CCM+ user guide, it is somewhere around page 454 (depending on the version).
cwl is offline   Reply With Quote

Old   February 2, 2022, 10:15
Default
  #6
New Member
 
Mathias
Join Date: Feb 2022
Posts: 4
Rep Power: 4
DAWTson is on a distinguished road
I found the reason.
For anyone who may need this: The force needs to be assigned to an area if you are using an axisymmetric analysis, and be a vector.
I made it work with he following:

[$$Position[1] >= 0 && $$Position[0] >= -0.05 && $$Position [1] <= 0.56 && $$Position[0] <= 0.05 ? 260 : 0, 0, 0]
| | |
|
from y coord > 0 from x coord > -0.05 to y coord < 0.056 to x coord < 0.05 assign 260 N/m3

and with a 0 component in y and z direction.

Hope this may help someone.
cwl likes this.
DAWTson is offline   Reply With Quote

Old   February 2, 2022, 21:03
Default
  #7
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 437
Rep Power: 18
cwl is on a distinguished road
Good job DAWTson!

Also - thank you for sharing your solution, I'm pretty sure someone would find it helpful
cwl is offline   Reply With Quote

Reply

Tags
field functions, volume forces


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
How to use "translation" in solidBodyMotionFunction in OpenFOAM rupesh_w OpenFOAM Running, Solving & CFD 5 August 16, 2016 05:27
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
[blockMesh] blockMesh error - Negative Volume Block adoledin OpenFOAM Meshing & Mesh Conversion 2 June 22, 2016 11:44
multiphase turbulance case floating error harsha_kulkarni OpenFOAM Running, Solving & CFD 3 February 18, 2016 06:06
Multiphase simulation of bubble rising Niru CFX 5 November 25, 2014 14:57


All times are GMT -4. The time now is 18:27.